]> git.lizzy.rs Git - rust.git/blob - tests/codegen/stack-probes-call.rs
Rollup merge of #107555 - edward-shen:edward-shen/dup-trait-suggestion, r=compiler...
[rust.git] / tests / codegen / stack-probes-call.rs
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"]
18 trait Sized {}
19
20 #[no_mangle]
21 pub fn foo() {
22 // CHECK: @foo() unnamed_addr #0
23 // CHECK: attributes #0 = { {{.*}}"probe-stack"="__rust_probestack"{{.*}} }
24 }