diff options
Diffstat (limited to 'llvm/test/Transforms/Inline/inline-probe-stack.ll')
-rw-r--r-- | llvm/test/Transforms/Inline/inline-probe-stack.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Transforms/Inline/inline-probe-stack.ll b/llvm/test/Transforms/Inline/inline-probe-stack.ll new file mode 100644 index 00000000000..bddee16d30b --- /dev/null +++ b/llvm/test/Transforms/Inline/inline-probe-stack.ll @@ -0,0 +1,20 @@ +; RUN: opt %s -inline -S | FileCheck %s + +define internal void @inner() "probe-stack"="__probestackinner" { + ret void +} + +define void @outerNoAttribute() { + call void @inner() + ret void +} + +define void @outerConflictingAttribute() "probe-stack"="__probestackouter" { + call void @inner() + ret void +} + +; CHECK: define void @outerNoAttribute() #0 +; CHECK: define void @outerConflictingAttribute() #1 +; CHECK: attributes #0 = { "probe-stack"="__probestackinner" } +; CHECK: attributes #1 = { "probe-stack"="__probestackouter" } |