blob: 55d0be6f26fd1fe5e08640d8b6fcf280729e7f95 [file] [log] [blame]
Bill Wendlingc6490d12012-04-24 10:36:42 +00001; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
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 Sands99c1a7c2008-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}