]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stack-protector/warn-stack-protector-unsupported.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[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(){}