mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 04:23:37 +00:00
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 a new issue