xref: /llvm-project/llvm/test/Other/2002-01-31-CallGraph.ll (revision 38386b4318e3ba54f450480ad49b237a9c357af4)
1;  Call graph construction crash: Not handling indirect calls right
2;
3; RUN: opt < %s -passes=print-callgraph > /dev/null 2>&1
4;
5
6        %FunTy = type i32 (i32)
7
8define void @invoke(ptr %x) {
9        %foo = call i32 %x( i32 123 )           ; <i32> [#uses=0]
10        ret void
11}
12
13
14