• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -print-callgraph -disable-output 2>&1 | 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'
7
8define internal void @callee(...) {
9entry:
10	unreachable
11}
12
13define void @caller() {
14entry:
15	call void (...) @callee( void (...)* @callee )
16	unreachable
17}
18