X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FOther%2F2002-01-31-CallGraph.ll;h=bb4c23e8779c1f718f675f1f47c7790f1faffe89;hb=3aa8f6bc1166655a8a9dae606b4a53f4044141ce;hp=61c1277d6420e9d39cb41c17e78b51c55c224b62;hpb=69ccadd7535a83b348595cf603126e6a68b2883b;p=oota-llvm.git diff --git a/test/Other/2002-01-31-CallGraph.ll b/test/Other/2002-01-31-CallGraph.ll index 61c1277d642..bb4c23e8779 100644 --- a/test/Other/2002-01-31-CallGraph.ll +++ b/test/Other/2002-01-31-CallGraph.ll @@ -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 ) ; [#uses=0] + ret void +} -void "invoke"(%FunTy *%x) -begin - %foo = call %FunTy* %x(int 123) - ret void -end