diff options
Diffstat (limited to 'llvm/test/Other/2002-01-31-CallGraph.ll')
-rw-r--r-- | llvm/test/Other/2002-01-31-CallGraph.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Other/2002-01-31-CallGraph.ll b/llvm/test/Other/2002-01-31-CallGraph.ll new file mode 100644 index 00000000000..61c1277d642 --- /dev/null +++ b/llvm/test/Other/2002-01-31-CallGraph.ll @@ -0,0 +1,15 @@ +; Call graph construction crash: Not handling indirect calls right +; +; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -callgraph +; + +%FunTy = type int(int) + +implementation + +void "invoke"(%FunTy *%x) +begin + %foo = call %FunTy* %x(int 123) + ret void +end + |