aboutsummaryrefslogtreecommitdiffstats
path: root/test/Other/2002-01-31-CallGraph.ll
blob: da638d8394c475d8e23a6d95135532bfb0a76e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;  Call graph construction crash: Not handling indirect calls right
;
; RUN: llvm-as < %s | opt -analyze -callgraph >& /dev/null
;

        %FunTy = type i32 (i32)

define void @invoke(%FunTy* %x) {
        %foo = call i32 %x( i32 123 )           ; <i32> [#uses=0]
        ret void
}