diff options
Diffstat (limited to 'src/test/codegen/alloc-optimisation.rs')
| -rw-r--r-- | src/test/codegen/alloc-optimisation.rs | 12 |
1 files changed, 3 insertions, 9 deletions
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,18 +7,12 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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 // CHECK-NEXT: start: |
