diff --git a/src/test/ui/lto-opt-level-s.rs b/src/test/ui/lto-opt-level-s.rs index ad3934efdd8..a7d9d5024d3 100644 --- a/src/test/ui/lto-opt-level-s.rs +++ b/src/test/ui/lto-opt-level-s.rs @@ -1,5 +1,6 @@ // compile-flags: -Clinker-plugin-lto -Copt-level=s // build-pass +// no-prefer-dynamic #![crate_type = "rlib"] diff --git a/src/test/ui/lto-opt-level-z.rs b/src/test/ui/lto-opt-level-z.rs index 3e77eb6170f..bf1f5e2b263 100644 --- a/src/test/ui/lto-opt-level-z.rs +++ b/src/test/ui/lto-opt-level-z.rs @@ -1,5 +1,6 @@ // compile-flags: -Clinker-plugin-lto -Copt-level=z // build-pass +// no-prefer-dynamic #![crate_type = "rlib"]