diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-14 20:44:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-14 20:44:09 +0000 |
commit | 0c3bba3d9cc3d69fec7a94a1b9d9e110ae14540e (patch) | |
tree | 27fbc6617533f4647edf3125f5df44c0120908ff /test | |
parent | 68fb37ad67d59051585cb7245f802f5c753c074f (diff) | |
download | llvm-0c3bba3d9cc3d69fec7a94a1b9d9e110ae14540e.tar.gz llvm-0c3bba3d9cc3d69fec7a94a1b9d9e110ae14540e.tar.bz2 llvm-0c3bba3d9cc3d69fec7a94a1b9d9e110ae14540e.tar.xz |
New basic testcase for the constifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/GlobalConstifier/basictest.llx | 9 |
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 +} |