Dan Gohman | f2f6ce6 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -print-callgraph -disable-output |& \ |
Chris Lattner | 1210446 | 2010-04-23 18:38:40 +0000 | [diff] [blame] | 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 | } |