1 ; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
2 ; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
4 ; CHECK: Call graph node for function: 'caller'
5 ; CHECK-NEXT: CS<{{.*}}> calls function 'broker'
6 ; CHECK-NEXT: CS<None> calls function 'callback'
8 define void @caller(ptr %arg) {
9 call void @broker(ptr @callback, ptr %arg)
13 define void @callback(ptr %arg) {
17 declare !callback !0 void @broker(ptr, ptr)
20 !1 = !{i64 0, i64 1, i1 false}