llvm.org GIT mirror llvm / 4f5e49c
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2956 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: as < %s | opt -globaldce
1 ;
2 implementation
3
4 internal void %func() { ; Not dead, can be reachable via X
5 ret void
6 }
7
8 void %main() {
9 %X = cast void()* %func to int*
10 ret void
11 }