]> git.proxmox.com Git - rustc.git/blame - src/test/codegen/stack-probes-call.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / codegen / stack-probes-call.rs
CommitLineData
2b03887a
FG
1// Check the "probe-stack" attribute for targets with `StackProbeType::Call`,
2// or `StackProbeType::InlineOrCall` when running on older LLVM.
3
4// compile-flags: -C no-prepopulate-passes
5// revisions: i686 x86_64
6//[i686] compile-flags: --target i686-unknown-linux-gnu
7//[i686] needs-llvm-components: x86
8//[i686] ignore-llvm-version: 16 - 99
9//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
10//[x86_64] needs-llvm-components: x86
11//[x86_64] ignore-llvm-version: 16 - 99
12
13#![crate_type = "rlib"]
14#![feature(no_core, lang_items)]
15#![no_core]
16
17#[lang = "sized"]
18trait Sized {}
19
20#[no_mangle]
21pub fn foo() {
22// CHECK: @foo() unnamed_addr #0
23// CHECK: attributes #0 = { {{.*}}"probe-stack"="__rust_probestack"{{.*}} }
24}