blob: bddee16d30b7b1ec3d7d6dd57b73ac4a4de5b3ba [file] [log] [blame]
Eric Christophercee313d2019-04-17 04:52:47 +00001; RUN: opt %s -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" }