adjust for asmprinter change.
[oota-llvm.git] / test / Other / 2002-01-31-CallGraph.ll
index 61c1277d6420e9d39cb41c17e78b51c55c224b62..bb4c23e8779c1f718f675f1f47c7790f1faffe89 100644 (file)
@@ -1,15 +1,13 @@
 ;  Call graph construction crash: Not handling indirect calls right
 ;
-; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -callgraph
+; RUN: llvm-as < %s | opt -analyze -print-callgraph >& /dev/null
 ;
 
-%FunTy = type int(int)
+        %FunTy = type i32 (i32)
 
-implementation
+define void @invoke(%FunTy* %x) {
+        %foo = call i32 %x( i32 123 )           ; <i32> [#uses=0]
+        ret void
+}
 
-void "invoke"(%FunTy *%x)
-begin
-       %foo = call %FunTy* %x(int 123)
-       ret void
-end