diff options
Diffstat (limited to 'src/test/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs')
-rw-r--r-- | src/test/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs b/src/test/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs new file mode 100644 index 000000000..971f3be7a --- /dev/null +++ b/src/test/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs @@ -0,0 +1,11 @@ +use std::io::Write; + +#[link(name = "c_static_lib_with_constructor", + kind = "static", + modifiers = "-bundle,+whole-archive")] +extern {} + +pub fn hello() { + print!("native_lib_in_src."); + std::io::stdout().flush().unwrap(); +} |