aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalDCE
diff options
context:
space:
mode:
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
+}