From: Chris Lattner Date: Sat, 14 Aug 2004 20:44:09 +0000 (+0000) Subject: New basic testcase for the constifier X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0c3bba3d9cc3d69fec7a94a1b9d9e110ae14540e;p=oota-llvm.git New basic testcase for the constifier git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15733 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/GlobalConstifier/basictest.llx b/test/Transforms/GlobalConstifier/basictest.llx new file mode 100644 index 00000000000..8305b8130a4 --- /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 +}