aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Analysis/CallGraph/printer.ll
blob: c177d3b9fb2c47e2f34ee2545109c335ad92ba13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: opt -S -passes=print-callgraph-sccs -disable-output < %s 2>&1 | FileCheck %s
; CHECK: SCC #1: g, f
; CHECK: SCC #2: h
; CHECK: SCC #3: external node

define void @f() {
  call void @g()
  ret void
}

define void @g() {
  call void @f()
  ret void
}

define void @h() {
  call void @f()
  ret void
}