• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - 2> %t.err > %t
2// RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
3
4.quad _foo - _bar
5// CHECK-ERROR: error: unsupported relocation with subtraction expression
6
7_Y:
8.long (_Y+4)-_b
9// CHECK-ERROR: error: unsupported relocation with subtraction expression, symbol '_b' can not be undefined in a subtraction expression
10
11_Z:
12.long (_a+4)-_Z
13// CHECK-ERROR: error: unsupported relocation with subtraction expression, symbol '_a' can not be undefined in a subtraction expression
14