diff options
Diffstat (limited to 'tests/ui/proc-macro/unsafe-foreign-mod.rs')
-rw-r--r-- | tests/ui/proc-macro/unsafe-foreign-mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/unsafe-foreign-mod.rs b/tests/ui/proc-macro/unsafe-foreign-mod.rs new file mode 100644 index 000000000..7bdfa93c2 --- /dev/null +++ b/tests/ui/proc-macro/unsafe-foreign-mod.rs @@ -0,0 +1,14 @@ +// run-pass +// aux-build:macro-only-syntax.rs + +extern crate macro_only_syntax; + +#[macro_only_syntax::expect_unsafe_foreign_mod] +unsafe extern { + type T; +} + +#[macro_only_syntax::expect_unsafe_extern_cpp_mod] +unsafe extern "C++" {} + +fn main() {} |