New basic testcase for the constifier
authorChris Lattner <sabre@nondot.org>
Sat, 14 Aug 2004 20:44:09 +0000 (20:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 14 Aug 2004 20:44:09 +0000 (20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15733 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/GlobalConstifier/basictest.llx [new file with mode: 0644]

diff --git a/test/Transforms/GlobalConstifier/basictest.llx b/test/Transforms/GlobalConstifier/basictest.llx
new file mode 100644 (file)
index 0000000..8305b81
--- /dev/null
@@ -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
+}