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