From: Chris Lattner Date: Tue, 1 Jul 2003 18:52:01 +0000 (+0000) Subject: new testcase X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=edc3c3d0fcd54429deae45f740aefbacaa95c589;p=oota-llvm.git new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7043 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll b/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll new file mode 100644 index 00000000000..d9f6db24837 --- /dev/null +++ b/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll @@ -0,0 +1,11 @@ +; 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 +}