diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-18 04:01:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-18 04:01:02 +0000 |
commit | e28751f388ea398b3f0fdc44f1f7c7287005fab0 (patch) | |
tree | 40b92df773c11caf4d71507d6f80bfc11dd38198 /test/Transforms/GlobalDCE | |
parent | 7f20ea7d7b9ab1b21147c58bec6491ce5ba7f816 (diff) | |
download | external_llvm-e28751f388ea398b3f0fdc44f1f7c7287005fab0.zip external_llvm-e28751f388ea398b3f0fdc44f1f7c7287005fab0.tar.gz external_llvm-e28751f388ea398b3f0fdc44f1f7c7287005fab0.tar.bz2 |
New testcases for bug in globaldce
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GlobalDCE')
-rw-r--r-- | test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll | 12 | ||||
-rw-r--r-- | test/Transforms/GlobalDCE/Makefile | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll b/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll new file mode 100644 index 0000000..e7830f5 --- /dev/null +++ b/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll @@ -0,0 +1,12 @@ +; RUN: as < %s | opt -globaldce +; +%X = global void() * %func +implementation + +internal void %func() { ; Not dead, can be reachable via X + ret void +} + +void %main() { + ret void +} diff --git a/test/Transforms/GlobalDCE/Makefile b/test/Transforms/GlobalDCE/Makefile new file mode 100644 index 0000000..91acd4d --- /dev/null +++ b/test/Transforms/GlobalDCE/Makefile @@ -0,0 +1,10 @@ + +LEVEL = ../../../.. +include $(LEVEL)/test/Makefile.tests + +TESTS := $(wildcard *.ll) + +all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out)) + +Output/%.ll.out: %.ll Output/.dir $(LOPT) + -$(TESTRUNR) $< |