summaryrefslogtreecommitdiff
path: root/test/Feature/global_section.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature/global_section.ll')
-rw-r--r--test/Feature/global_section.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Feature/global_section.ll b/test/Feature/global_section.ll
new file mode 100644
index 000000000000..b8f5eb1b666c
--- /dev/null
+++ b/test/Feature/global_section.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
+@X = global i32 4, section "foo", align 16 ; <i32*> [#uses=0]
+
+define void @test() section "bar" {
+ ret void
+}
+