blob: 595cc427c452afe681d2f96521ec4171996a7f00 [file] [log] [blame]
Chandler Carruth5da53432012-07-02 18:37:59 +00001; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
Bill Wendling4cf911c2012-04-24 10:36:42 +00002
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 Sandsc189e792008-09-09 12:40:47 +00007
8define internal void @callee(...) {
9entry:
10 unreachable
11}
12
13define void @caller() {
14entry:
15 call void (...)* @callee( void (...)* @callee )
16 unreachable
17}