summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/MachO/bad-darwin-x86_64-diff-relocs.s
blob: 36b5f95792423508171ee88b4bdd98b90d8f882e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - 2> %t.err > %t
// RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s

.quad _foo - _bar
// CHECK-ERROR: error: unsupported relocation with subtraction expression

_Y:
.long (_Y+4)-_b
// CHECK-ERROR: error: unsupported relocation with subtraction expression, symbol '_b' can not be undefined in a subtraction expression

_Z:
.long (_a+4)-_Z
// CHECK-ERROR: error: unsupported relocation with subtraction expression, symbol '_a' can not be undefined in a subtraction expression
OpenPOWER on IntegriCloud