From edc3c3d0fcd54429deae45f740aefbacaa95c589 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 1 Jul 2003 18:52:01 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7043 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll 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 +}