Duncan Sands | 3ee8fc9 | 2008-09-23 12:47:39 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -print-callgraph -disable-output |& \ |
2 | ; RUN: grep {Calls function 'callee'} | count 2 | ||||
Duncan Sands | 99c1a7c | 2008-09-09 12:40:47 +0000 | [diff] [blame] | 3 | |
4 | define internal void @callee(...) { | ||||
5 | entry: | ||||
6 | unreachable | ||||
7 | } | ||||
8 | |||||
9 | define void @caller() { | ||||
10 | entry: | ||||
11 | call void (...)* @callee( void (...)* @callee ) | ||||
12 | unreachable | ||||
13 | } |