diff options
Diffstat (limited to 'src/test/run-make/native-link-modifier-verbatim-linker/main.rs')
-rw-r--r-- | src/test/run-make/native-link-modifier-verbatim-linker/main.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/run-make/native-link-modifier-verbatim-linker/main.rs b/src/test/run-make/native-link-modifier-verbatim-linker/main.rs new file mode 100644 index 000000000..71b73a489 --- /dev/null +++ b/src/test/run-make/native-link-modifier-verbatim-linker/main.rs @@ -0,0 +1,9 @@ +extern "C" { + fn local_native_f() -> i32; +} + +pub fn main() { + unsafe { + assert!(local_native_f() == 0); + }; +} |