X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FOther%2F2002-01-31-CallGraph.ll;h=0e4c877512631a73efa9d16cfc4579ef58430ed9;hb=8239daf7c83a65a189c352cce3191cdc3bbfe151;hp=279369de6651f121a4a62d6bb7a09eb1b1da0952;hpb=c9b208c88607172bf23eb92bb1f8d8dfb833e814;p=oota-llvm.git diff --git a/test/Other/2002-01-31-CallGraph.ll b/test/Other/2002-01-31-CallGraph.ll index 279369de665..0e4c8775126 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-as < %s | opt -analyze -callgraph +; RUN: opt < %s -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