Skip to content

Commit 146578c

Browse files
dtolnaycalebcartwright
authored andcommitted
Add regression test for unsafe mods
1 parent 8635a5c commit 146578c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/source/unsafe-mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// These are supported by rustc syntactically but not semantically.
2+
3+
#[cfg(any())]
4+
unsafe mod m { }
5+
6+
#[cfg(any())]
7+
unsafe extern "C++" { }

tests/target/unsafe-mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// These are supported by rustc syntactically but not semantically.
2+
3+
#[cfg(any())]
4+
unsafe mod m {}
5+
6+
#[cfg(any())]
7+
unsafe extern "C++" {}

0 commit comments

Comments
 (0)