blob: 0e4c877512631a73efa9d16cfc4579ef58430ed9 [file] [log] [blame]
Chris Lattner07ae06d2002-02-01 05:04:58 +00001; Call graph construction crash: Not handling indirect calls right
2;
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00003; RUN: opt < %s -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