Compiler projects using llvm
; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/external-address.perfscript --binary=%S/Inputs/inline-cs-noprobe.perfbin --output=%t --skip-symbolization --profile-summary-hot-count=0 --compress-recursion=0
; RUN: FileCheck %s --input-file %t --check-prefix=CHECK-UNWINDER


; CHECK-UNWINDER: [main:1 @ foo]
; CHECK-UNWINDER:   2
; CHECK-UNWINDER:   670-6ad:4
; CHECK-UNWINDER:   6bd-6c8:4
; CHECK-UNWINDER:   2
; CHECK-UNWINDER:   69b->670:5
; CHECK-UNWINDER:   6c8->67e:1
; CHECK-UNWINDER: [main:1 @ foo:3.1 @ bar]
; CHECK-UNWINDER:   1
; CHECK-UNWINDER:   6af-6bb:4
; CHECK-UNWINDER:   0

; Manually created to test if remaining call stack can be correctly unwinded.
; CHECK-UNWINDER: [main:1 @ foo:4 @ main:1 @ foo]
; CHECK-UNWINDER:   2
; CHECK-UNWINDER:   670-6ad:1
; CHECK-UNWINDER:   6bd-6c8:1
; CHECK-UNWINDER:   2
; CHECK-UNWINDER:   69b->670:1
; CHECK-UNWINDER:   6c8->67e:1
; CHECK-UNWINDER: [main:1 @ foo:4 @ main:1 @ foo:3.1 @ bar]
; CHECK-UNWINDER:   1
; CHECK-UNWINDER:   6af-6bb:1
; CHECK-UNWINDER:   0