mirror of
https://github.com/rust-lang/rust
synced 2024-09-30 22:04:36 +00:00
Add tests
This commit is contained in:
parent
6ec492fdde
commit
48851d9adb
7
tests/ui/attributes/unsafe/cfg-unsafe-attributes.rs
Normal file
7
tests/ui/attributes/unsafe/cfg-unsafe-attributes.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
//@ build-pass
|
||||
#![feature(unsafe_attributes)]
|
||||
|
||||
#[cfg_attr(all(), unsafe(no_mangle))]
|
||||
fn a() {}
|
||||
|
||||
fn main() {}
|
7
tests/ui/attributes/unsafe/unsafe-attributes.rs
Normal file
7
tests/ui/attributes/unsafe/unsafe-attributes.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
//@ build-pass
|
||||
#![feature(unsafe_attributes)]
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
fn a() {}
|
||||
|
||||
fn main() {}
|
Loading…
Reference in a new issue