| Dan Gohman | 1880092 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -print-callgraph -disable-output |& \ |
| Chris Lattner | 126a58e | 2010-04-23 18:38:40 +0000 | [diff] [blame] | 2 | ; RUN: grep {calls function 'callee'} | count 2 |
| Duncan Sands | c189e79 | 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 | } | ||||