blob: bb4c23e8779c1f718f675f1f47c7790f1faffe89 [file] [log] [blame]
Chris Lattner07ae06d2002-02-01 05:04:58 +00001; Call graph construction crash: Not handling indirect calls right
2;
Duncan Sands3ee8fc92008-09-23 12:47:39 +00003; RUN: llvm-as < %s | opt -analyze -print-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