summaryrefslogtreecommitdiff
path: root/test/MC/ELF/org.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/org.s')
-rw-r--r--test/MC/ELF/org.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ELF/org.s b/test/MC/ELF/org.s
new file mode 100644
index 0000000000..c073fa5d80
--- /dev/null
+++ b/test/MC/ELF/org.s
@@ -0,0 +1,13 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+ .zero 4
+foo:
+ .zero 4
+ .org foo+16
+
+// CHECK: (('sh_name', 0x00000001) # '.text'
+// CHECK-NEXT: ('sh_type',
+// CHECK-NEXT: ('sh_flags',
+// CHECK-NEXT: ('sh_addr',
+// CHECK-NEXT: ('sh_offset'
+// CHECK-NEXT: ('sh_size', 0x00000014)