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 New Issue
Block a user