diff options
Diffstat (limited to 'test/MC/ELF/no-reloc.s')
-rw-r--r-- | test/MC/ELF/no-reloc.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/MC/ELF/no-reloc.s b/test/MC/ELF/no-reloc.s new file mode 100644 index 0000000..78f1b88 --- /dev/null +++ b/test/MC/ELF/no-reloc.s @@ -0,0 +1,19 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s + +// CHECK: Relocations [ +// CHECK-NEXT: ] + + .section .test1_foo +.Ltest1_1: +.Ltest1_2 = .Ltest1_1 + .section .test1_bar + .long .Ltest1_1-.Ltest1_2 + + + .section test2 + +.Ltest2_a: +.Ltest2_b = .Ltest2_a +.Ltest2_c: +.Ltest2_d = .Ltest2_c-.Ltest2_b + .long .Ltest2_d |