aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalDCE
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-01 18:52:01 +0000
committerChris Lattner <sabre@nondot.org>2003-07-01 18:52:01 +0000
commitedc3c3d0fcd54429deae45f740aefbacaa95c589 (patch)
tree0924f14c626a5c21db4a96526c3c769f589f3937 /test/Transforms/GlobalDCE
parent487bc8f7fb27c2955e5f0809103f051bcda2acf9 (diff)
downloadexternal_llvm-edc3c3d0fcd54429deae45f740aefbacaa95c589.zip
external_llvm-edc3c3d0fcd54429deae45f740aefbacaa95c589.tar.gz
external_llvm-edc3c3d0fcd54429deae45f740aefbacaa95c589.tar.bz2
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GlobalDCE')
-rw-r--r--test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll11
1 files changed, 11 insertions, 0 deletions
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 0000000..d9f6db2
--- /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
+}