llvm.org GIT mirror llvm / e28751f
New testcases for bug in globaldce git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2955 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
2 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: as < %s | opt -globaldce
1 ;
2 %X = global void() * %func
3 implementation
4
5 internal void %func() { ; Not dead, can be reachable via X
6 ret void
7 }
8
9 void %main() {
10 ret void
11 }
0
1 LEVEL = ../../../..
2 include $(LEVEL)/test/Makefile.tests
3
4 TESTS := $(wildcard *.ll)
5
6 all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
7
8 Output/%.ll.out: %.ll Output/.dir $(LOPT)
9 -$(TESTRUNR) $<