blob: da638d8394c475d8e23a6d95135532bfb0a76e35 [file] [log] [blame]
Chris Lattner07ae06d2002-02-01 05:04:58 +00001; Call graph construction crash: Not handling indirect calls right
2;
Duncan Sandse65d39a2008-09-19 07:57:09 +00003; RUN: llvm-as < %s | opt -analyze -callgraph >& /dev/null
Chris Lattner07ae06d2002-02-01 05:04:58 +00004;
5
Tanya Lattner2ad38be2008-02-19 01:44:26 +00006 %FunTy = type i32 (i32)
Chris Lattner07ae06d2002-02-01 05:04:58 +00007
Tanya Lattner2ad38be2008-02-19 01:44:26 +00008define void @invoke(%FunTy* %x) {
9 %foo = call i32 %x( i32 123 ) ; <i32> [#uses=0]
10 ret void
11}
Chris Lattner07ae06d2002-02-01 05:04:58 +000012
Chris Lattner07ae06d2002-02-01 05:04:58 +000013