summaryrefslogtreecommitdiffstats
path: root/tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs')
-rw-r--r--tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs b/tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs
new file mode 100644
index 000000000..d24375b2d
--- /dev/null
+++ b/tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs
@@ -0,0 +1,6 @@
+// compile-flags: -Clinker-plugin-lto
+// no-prefer-dynamic
+
+#![crate_type = "rlib"]
+
+pub fn foo() {}