New testcase

llvm-svn: 2956
This commit is contained in:
Chris Lattner 2002-07-18 04:25:11 +00:00
parent 6c0ebfd065
commit a6c6d78805
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
; RUN: as < %s | opt -globaldce
;
implementation
internal void %func() { ; Not dead, can be reachable via X
ret void
}
void %main() {
%X = cast void()* %func to int*
ret void
}