summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll
blob: afdc1cd12d00c161f363672d479c118eaf36bf95 (plain)
1
2
3
4
5
6
7
8
9
10
11
; distilled from 255.vortex
; RUN: llvm-upgrade < %s | llvm-as | 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
}