diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:32:52 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:32:52 +0000 |
commit | 08bbd35a80bf7765fe0d3043f9eb5a2f2786b649 (patch) | |
tree | 80108f0f128657f8623f8f66ad9735b4d88e7b47 /test/Transforms/Inline/inline-probe-stack.ll | |
parent | 7c7aba6e5fef47a01a136be655b0a92cfd7090f6 (diff) |
Diffstat (limited to 'test/Transforms/Inline/inline-probe-stack.ll')
-rw-r--r-- | test/Transforms/Inline/inline-probe-stack.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Transforms/Inline/inline-probe-stack.ll b/test/Transforms/Inline/inline-probe-stack.ll new file mode 100644 index 000000000000..bddee16d30b7 --- /dev/null +++ b/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" } |