new testcase. globaldce should not delete the global
[oota-llvm.git] / test / Transforms / GlobalDCE / 2002-07-17-CastRef.ll
1 ; RUN: llvm-as < %s | opt -globaldce
2 ;
3 implementation
4
5 internal void %func() {  ; Not dead, can be reachable via X
6   ret void
7 }
8
9 void %main() {
10         %X = cast void()* %func to int*
11         ret void
12 }