18 lines · plain
1; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s2 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'7 8define internal void @callee(...) {9entry:10 unreachable11}12 13define void @caller() {14entry:15 call void (...) @callee( ptr @callee )16 unreachable17}18