Chris Lattner | 07ae06d | 2002-02-01 05:04:58 +0000 | [diff] [blame] | 1 | ; Call graph construction crash: Not handling indirect calls right |
2 | ; | ||||
Reid Spencer | 69ccadd | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 3 | ; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -callgraph |
Chris Lattner | 07ae06d | 2002-02-01 05:04:58 +0000 | [diff] [blame] | 4 | ; |
5 | |||||
6 | %FunTy = type int(int) | ||||
7 | |||||
8 | implementation | ||||
9 | |||||
10 | void "invoke"(%FunTy *%x) | ||||
11 | begin | ||||
12 | %foo = call %FunTy* %x(int 123) | ||||
13 | ret void | ||||
14 | end | ||||
15 |