summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/GlobalConstifier/basictest.llx9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/GlobalConstifier/basictest.llx b/test/Transforms/GlobalConstifier/basictest.llx
new file mode 100644
index 0000000000..8305b8130a
--- /dev/null
+++ b/test/Transforms/GlobalConstifier/basictest.llx
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep global
+
+%X = internal global int 4
+
+
+int %foo() {
+ %V = load int* %X
+ ret int %V
+}