summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lto/lto-opt-level-s.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/lto/lto-opt-level-s.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/lto/lto-opt-level-s.rs b/src/test/ui/lto/lto-opt-level-s.rs
new file mode 100644
index 000000000..a7d9d5024
--- /dev/null
+++ b/src/test/ui/lto/lto-opt-level-s.rs
@@ -0,0 +1,7 @@
+// compile-flags: -Clinker-plugin-lto -Copt-level=s
+// build-pass
+// no-prefer-dynamic
+
+#![crate_type = "rlib"]
+
+pub fn foo() {}