summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll
blob: e306d9a4aff1d774b4876c716c5873424c378626 (plain)
1
2
3
4
5
6
7
8
9
10
11
; distilled from 255.vortex
; RUN: llvm-as < %s | opt -globaldce | llvm-dis | not grep testfunc

implementation

declare bool()* %getfunc()
internal bool %testfunc() {
	%F = call bool()*()* %getfunc()
	%c = seteq bool()* %F, %testfunc
	ret bool %c
}