mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
New testcases for bug in globaldce
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f20ea7d7b
commit
e28751f388
12
test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll
Normal file
12
test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll
Normal file
@ -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
|
||||
}
|
10
test/Transforms/GlobalDCE/Makefile
Normal file
10
test/Transforms/GlobalDCE/Makefile
Normal file
@ -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) $<
|
Loading…
x
Reference in New Issue
Block a user