Remove the getAttributesAtIndex and getNumAttrs methods in favor of using the getAttr...
[oota-llvm.git] / test / Transforms / GlobalDCE / 2003-07-01-SelfReference.ll
index d9f6db24837f99693d9537e4ae48e00514fb97d9..738ec43aaeb1719b5bc31c76cfcd994511e317a5 100644 (file)
@@ -1,11 +1,11 @@
 ; distilled from 255.vortex
-; RUN: as < %s | opt -globaldce | dis | not grep testfunc
+; RUN: opt < %s -globaldce -S | not grep testfunc
 
-implementation
+declare i1 ()* @getfunc()
 
-declare bool()* %getfunc()
-internal bool %testfunc() {
-       %F = call bool()*()* %getfunc()
-       %c = seteq bool()* %F, %testfunc
-       ret bool %c
+define internal i1 @testfunc() {
+        %F = call i1 ()* ()* @getfunc( )                ; <i1 ()*> [#uses=1]
+        %c = icmp eq i1 ()* %F, @testfunc               ; <i1> [#uses=1]
+        ret i1 %c
 }
+