new testcase. globaldce should not delete the global
[oota-llvm.git] / test / Transforms / GlobalDCE / 2003-07-01-SelfReference.ll
1 ; distilled from 255.vortex
2 ; RUN: llvm-as < %s | opt -globaldce | llvm-dis | not grep testfunc
3
4 implementation
5
6 declare bool()* %getfunc()
7 internal bool %testfunc() {
8         %F = call bool()*()* %getfunc()
9         %c = seteq bool()* %F, %testfunc
10         ret bool %c
11 }