From 0c3bba3d9cc3d69fec7a94a1b9d9e110ae14540e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 14 Aug 2004 20:44:09 +0000 Subject: [PATCH] New basic testcase for the constifier git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15733 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/GlobalConstifier/basictest.llx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Transforms/GlobalConstifier/basictest.llx 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 +} -- 2.34.1