Add a test that native mods don't need to declare an ABI
This commit is contained in:
parent
5665308d8c
commit
a362d85329
9
src/test/run-pass/native-no-abi.rs
Normal file
9
src/test/run-pass/native-no-abi.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// ABI is cdecl by default
|
||||
|
||||
native mod rustrt {
|
||||
fn unsupervise();
|
||||
}
|
||||
|
||||
fn main() {
|
||||
rustrt::unsupervise();
|
||||
}
|
Loading…
Reference in New Issue
Block a user