1 ; RUN: llvm-profgen --format=text --ignore-stack-samples --perfscript=%S/Inputs/inline-cs-pseudoprobe.perfscript --binary=%S/Inputs/inline-cs-pseudoprobe.perfbin --output=%t --profile-summary-cold-count=0
2 ; RUN: FileCheck %s --input-file %t
6 ; CHECK-NEXT: 2: foo:88
15 ; CHECK-NEXT: 8: bar:28
18 ; CHECK-NEXT: !CFGChecksum: 72617220756
19 ; CHECK-NEXT: !CFGChecksum: 563088904013236
20 ; CHECK-NEXT: !CFGChecksum: 281479271677951
23 ; clang -O3 -fuse-ld=lld -fpseudo-probe-for-profiling
24 ; -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Xclang -mdisable-tail-calls
29 int bar(int x, int y) {
38 while (i++ < 4000 * 4000)
39 if (i % 91) s = bar(i, s); else s += 30;
40 printf("sum is %d\n", s);