Ignoring per-user file.
[oota-llvm.git] / test / Other / 2002-01-31-CallGraph.ll
index e9a5a6eae1badeeee9db96044c950d4bad772203..e09461dc2acb0767a527ce3b0b24c1237523009f 100644 (file)
@@ -1,15 +1,13 @@
 ;  Call graph construction crash: Not handling indirect calls right
 ;
-; RUN: analyze -callgraph %s
+; RUN: llvm-as < %s | opt -analyze -callgraph
 ;
 
-%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