2020-11-18 16:04:27 +08:00
|
|
|
; RUN: opt -enable-new-pm=0 %s -dot-callgraph -callgraph-multigraph -callgraph-dot-filename-prefix=%t -disable-output
|
2020-06-17 02:39:54 +08:00
|
|
|
; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK-MULTIGRAPH
|
2020-11-18 16:04:27 +08:00
|
|
|
; RUN: opt -enable-new-pm=0 %s -dot-callgraph -callgraph-dot-filename-prefix=%t -disable-output
|
2020-06-17 02:39:54 +08:00
|
|
|
; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK
|
|
|
|
|
|
|
|
; CHECK-MULTIGRAPH: {external caller}
|
|
|
|
; CHECK-NOT: {external caller}
|
|
|
|
|
|
|
|
define void @bar() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
call void @bar()
|
|
|
|
ret void
|
|
|
|
}
|