From 79a905ef305b1c3048ad2535887951721ab65f5c Mon Sep 17 00:00:00 2001 From: Dmytro Shynkevych Date: Mon, 20 Aug 2018 11:13:45 -0400 Subject: [PATCH] Added explicit optimization flag to test --- src/test/codegen/issue-13018.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/codegen/issue-13018.rs b/src/test/codegen/issue-13018.rs index 9289fb3b29586..702b9545794b2 100644 --- a/src/test/codegen/issue-13018.rs +++ b/src/test/codegen/issue-13018.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// compile-flags: -O + // A drop([...].clone()) sequence on an Rc should be a no-op // In particular, no call to __rust_dealloc should be emitted #![crate_type = "lib"]