1*cee313d2SEric Christopher; RUN: opt %s -inline -S | FileCheck %s
2*cee313d2SEric Christopher
3*cee313d2SEric Christopherdefine internal void @inner() "probe-stack"="__probestackinner" {
4*cee313d2SEric Christopher  ret void
5*cee313d2SEric Christopher}
6*cee313d2SEric Christopher
7*cee313d2SEric Christopherdefine void @outerNoAttribute() {
8*cee313d2SEric Christopher  call void @inner()
9*cee313d2SEric Christopher  ret void
10*cee313d2SEric Christopher}
11*cee313d2SEric Christopher
12*cee313d2SEric Christopherdefine void @outerConflictingAttribute() "probe-stack"="__probestackouter" {
13*cee313d2SEric Christopher  call void @inner()
14*cee313d2SEric Christopher  ret void
15*cee313d2SEric Christopher}
16*cee313d2SEric Christopher
17*cee313d2SEric Christopher; CHECK: define void @outerNoAttribute() #0
18*cee313d2SEric Christopher; CHECK: define void @outerConflictingAttribute() #1
19*cee313d2SEric Christopher; CHECK: attributes #0 = { "probe-stack"="__probestackinner" }
20*cee313d2SEric Christopher; CHECK: attributes #1 = { "probe-stack"="__probestackouter" }
21