diff options
Diffstat (limited to 'test/MC/ELF/weak-diff2.s')
-rw-r--r-- | test/MC/ELF/weak-diff2.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ELF/weak-diff2.s b/test/MC/ELF/weak-diff2.s new file mode 100644 index 0000000..daf64a4 --- /dev/null +++ b/test/MC/ELF/weak-diff2.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t 2>&1 | FileCheck %s + +// CHECK: error: Cannot represent a subtraction with a weak symbol + +.weak f +f: + nop +g: + nop +.quad g - f |