blob: dad7431b13c7933c1f522fceb4ec6ffbc08d5186 [file] [log] [blame]
Rafael Espindola5904e122014-03-29 06:26:49 +00001// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null \
2// RUN: 2>&1 | FileCheck %s
3
Rafael Espindola5f4a10b2017-06-20 21:11:58 +00004// CHECK: [[@LINE+2]]:{{[0-9]+}}: error: No relocation available to represent this relative expression
5// CHECK-NEXT: call foo - bar
Rafael Espindola5904e122014-03-29 06:26:49 +00006 call foo - bar
Rafael Espindola5f4a10b2017-06-20 21:11:58 +00007
Rafael Espindola5904e122014-03-29 06:26:49 +00008 .section .foo
9foo:
10 .section .bar
11bar: