llvm-6502/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll
Chris Lattner edc3c3d0fc new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7043 91177308-0d34-0410-b5e6-96231b3b80d8
2003-07-01 18:52:01 +00:00

12 lines
240 B
LLVM

; distilled from 255.vortex
; RUN: as < %s | opt -globaldce | dis | not grep testfunc
implementation
declare bool()* %getfunc()
internal bool %testfunc() {
%F = call bool()*()* %getfunc()
%c = seteq bool()* %F, %testfunc
ret bool %c
}