1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/Other/2002-01-31-CallGraph.ll

15 lines
360 B
LLVM
Raw Normal View History

2002-02-01 06:04:58 +01:00
; Call graph construction crash: Not handling indirect calls right
;
; RUN: opt < %s -analyze -print-callgraph -enable-new-pm=0 > /dev/null 2>&1
; RUN: opt < %s -passes=print-callgraph > /dev/null 2>&1
2002-02-01 06:04:58 +01:00
;
%FunTy = type i32 (i32)
2002-02-01 06:04:58 +01:00
define void @invoke(%FunTy* %x) {
%foo = call i32 %x( i32 123 ) ; <i32> [#uses=0]
ret void
}
2002-02-01 06:04:58 +01:00