new testcase
authorChris Lattner <sabre@nondot.org>
Tue, 1 Jul 2003 18:52:01 +0000 (18:52 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Jul 2003 18:52:01 +0000 (18:52 +0000)
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 [new file with mode: 0644]

diff --git a/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll b/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll
new file mode 100644 (file)
index 0000000..d9f6db2
--- /dev/null
@@ -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
+}