about summary refs log tree commit diff homepage
path: root/test/Concrete/GlobalVariable.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Concrete/GlobalVariable.ll')
-rw-r--r--test/Concrete/GlobalVariable.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Concrete/GlobalVariable.ll b/test/Concrete/GlobalVariable.ll
new file mode 100644
index 00000000..d15df064
--- /dev/null
+++ b/test/Concrete/GlobalVariable.ll
@@ -0,0 +1,9 @@
+declare void @print_i32(i32)
+
+@anInt = global i32 1
+@aRef = global i32* @anInt
+
+define i32 @main() {
+        call void @print_i32(i32 0)
+	ret i32 0
+}