]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stack-protector/warn-stack-protector-unsupported.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / stack-protector / warn-stack-protector-unsupported.rs
1 // build-pass
2 // revisions: all strong basic
3 // compile-flags: --target nvptx64-nvidia-cuda
4 // needs-llvm-components: nvptx
5 // [all] compile-flags: -Z stack-protector=all
6 // [strong] compile-flags: -Z stack-protector=strong
7 // [basic] compile-flags: -Z stack-protector=basic
8
9 #![crate_type = "lib"]
10 #![feature(no_core, lang_items)]
11 #![no_std]
12 #![no_core]
13
14 #[lang = "sized"]
15 trait Sized {}
16 #[lang = "copy"]
17 trait Copy {}
18
19 pub fn main(){}