Add tests

This commit is contained in:
carbotaniuman 2024-04-28 15:43:07 -05:00
parent 6ec492fdde
commit 48851d9adb
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,7 @@
//@ build-pass
#![feature(unsafe_attributes)]
#[cfg_attr(all(), unsafe(no_mangle))]
fn a() {}
fn main() {}

View file

@ -0,0 +1,7 @@
//@ build-pass
#![feature(unsafe_attributes)]
#[unsafe(no_mangle)]
fn a() {}
fn main() {}