Skip to content

Commit a362d85

Browse files
committed
Add a test that native mods don't need to declare an ABI
1 parent 5665308 commit a362d85

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/run-pass/native-no-abi.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// ABI is cdecl by default
2+
3+
native mod rustrt {
4+
fn unsupervise();
5+
}
6+
7+
fn main() {
8+
rustrt::unsupervise();
9+
}

0 commit comments

Comments
 (0)