summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/unsafe-foreign-mod.rs
blob: 7bdfa93c21fc7e354ff3c65d67967e531571fbfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {}