mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Add tests
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
//@ build-pass
|
||||
#![feature(unsafe_attributes)]
|
||||
|
||||
#[cfg_attr(all(), unsafe(no_mangle))]
|
||||
fn a() {}
|
||||
|
||||
fn main() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
//@ build-pass
|
||||
#![feature(unsafe_attributes)]
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
fn a() {}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user