llvm-project
16 строк · 504.0 Байт
1; RUN: opt %s -passes=dot-callgraph -callgraph-multigraph -callgraph-dot-filename-prefix=%t -disable-output
2; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK-MULTIGRAPH
3; RUN: opt %s -passes=dot-callgraph -callgraph-dot-filename-prefix=%t -disable-output
4; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK
5
6; CHECK-MULTIGRAPH: {external caller}
7; CHECK-NOT: {external caller}
8
9define void @bar() {
10ret void
11}
12
13define void @foo() {
14call void @bar()
15ret void
16}
17