diff options
Diffstat (limited to 'test/MC/ELF/bad-expr2.s')
-rw-r--r-- | test/MC/ELF/bad-expr2.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/ELF/bad-expr2.s b/test/MC/ELF/bad-expr2.s new file mode 100644 index 0000000..3da916b --- /dev/null +++ b/test/MC/ELF/bad-expr2.s @@ -0,0 +1,12 @@ +// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null \ +// RUN: 2>&1 | FileCheck %s + +// CHECK: No relocation available to represent this relative expression +// CHECK: call foo - bar + + + call foo - bar + .section .foo +foo: + .section .bar +bar: |