From 406eddf5e1e14b9356b332c0df987a1bdf0d2c7f Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Thu, 8 Jun 2017 17:18:05 +0300 Subject: Add a no-system-llvm compilecheck header --- src/test/codegen/alloc-optimisation.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/test/codegen') diff --git a/src/test/codegen/alloc-optimisation.rs b/src/test/codegen/alloc-optimisation.rs index 3953f637cf7..07dc1350714 100644 --- a/src/test/codegen/alloc-optimisation.rs +++ b/src/test/codegen/alloc-optimisation.rs @@ -7,17 +7,11 @@ // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. +// +// no-system-llvm +// compile-flags: -O #![crate_type="lib"] -#[no_mangle] -pub fn alloc_zeroed_test(size: u8) { - // CHECK-LABEL: @alloc_zeroed_test - // CHECK-NEXT: start: - // CHECK-NEXT: ret void - let x = vec![0u8; size as usize]; - drop(x); -} - #[no_mangle] pub fn alloc_test(data: u32) { // CHECK-LABEL: @alloc_test -- cgit 1.4.1-3-g733a5