aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/global-sections.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/global-sections.ll')
-rw-r--r--test/CodeGen/X86/global-sections.ll17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll
index ef31def..ddfb352 100644
--- a/test/CodeGen/X86/global-sections.ll
+++ b/test/CodeGen/X86/global-sections.ll
@@ -39,4 +39,19 @@
; DARWIN: .const
; DARWIN: _G4:
-; .long 34
+; DARWIN: .long 34
+
+
+; int G5 = 47;
+@G5 = global i32 47
+
+; LINUX: .data
+; LINUX: .globl G5
+; LINUX: G5:
+; LINUX: .long 47
+
+; DARWIN: .data
+; DARWIN: .globl _G5
+; DARWIN: _G5:
+; DARWIN: .long 47
+