xref: /llvm-project/llvm/test/Transforms/Inline/inline-probe-stack.ll (revision e5369823bc0655806469724335d0ca5a4c17d8c7)
1; RUN: opt %s -passes=inline -S | FileCheck %s
2
3define internal void @inner() "probe-stack"="__probestackinner" {
4  ret void
5}
6
7define void @outerNoAttribute() {
8  call void @inner()
9  ret void
10}
11
12define void @outerConflictingAttribute() "probe-stack"="__probestackouter" {
13  call void @inner()
14  ret void
15}
16
17; CHECK: define void @outerNoAttribute() #0
18; CHECK: define void @outerConflictingAttribute() #1
19; CHECK: attributes #0 = { "probe-stack"="__probestackinner" }
20; CHECK: attributes #1 = { "probe-stack"="__probestackouter" }
21