Chandler Carruth | 5da5343 | 2012-07-02 18:37:59 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s |
Bill Wendling | 4cf911c | 2012-04-24 10:36:42 +0000 | [diff] [blame] | 2 | |
| 3 | ; CHECK: Call graph node <<null function>> |
| 4 | ; CHECK: CS<{{.*}}> calls function 'callee' |
| 5 | ; CHECK: Call graph node for function: 'caller' |
| 6 | ; CHECK: CS<{{.*}}> calls function 'callee' |
Duncan Sands | c189e79 | 2008-09-09 12:40:47 +0000 | [diff] [blame] | 7 | |
| 8 | define internal void @callee(...) { |
| 9 | entry: |
| 10 | unreachable |
| 11 | } |
| 12 | |
| 13 | define void @caller() { |
| 14 | entry: |
David Blaikie | 23af648 | 2015-04-16 23:24:18 +0000 | [diff] [blame] | 15 | call void (...) @callee( void (...)* @callee ) |
Duncan Sands | c189e79 | 2008-09-09 12:40:47 +0000 | [diff] [blame] | 16 | unreachable |
| 17 | } |