aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/weak.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/weak.s')
-rw-r--r--test/MC/ELF/weak.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/ELF/weak.s b/test/MC/ELF/weak.s
index ef8e000..0b93a87 100644
--- a/test/MC/ELF/weak.s
+++ b/test/MC/ELF/weak.s
@@ -5,6 +5,20 @@
.weak foo
.long foo
+// And that bar is after all local symbols
+ .weak bar
+bar:
+
+//CHECK: # Symbol 4
+//CHECK-NEXT: (('st_name', 5) # 'bar'
+//CHECK-NEXT: ('st_bind', 2)
+//CHECK-NEXT: ('st_type', 0)
+//CHECK-NEXT: ('st_other', 0)
+//CHECK-NEXT: ('st_shndx', 1)
+//CHECK-NEXT: ('st_value', 0)
+//CHECK-NEXT: ('st_size', 0)
+//CHECK-NEXT: ),
+//CHECK-NEXT: # Symbol 5
//CHECK: (('st_name', 1) # 'foo'
//CHECK-NEXT: ('st_bind', 2)
//CHECK-NEXT: ('st_type', 0)
@@ -12,3 +26,5 @@
//CHECK-NEXT: ('st_shndx', 0)
//CHECK-NEXT: ('st_value', 0)
//CHECK-NEXT: ('st_size', 0)
+//CHECK-NEXT: ),
+//CHECK-NEXT: ])