diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2017-06-08 17:18:05 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2017-06-15 19:11:55 +0300 |
| commit | 406eddf5e1e14b9356b332c0df987a1bdf0d2c7f (patch) | |
| tree | bf77d664b2b87b4f3b0fc6e37c452c81181e6dd8 /src/test/codegen | |
| parent | 8938269db63bf1f9c0f17f3c2c39d3449b4d652e (diff) | |
| download | rust-406eddf5e1e14b9356b332c0df987a1bdf0d2c7f.tar.gz rust-406eddf5e1e14b9356b332c0df987a1bdf0d2c7f.zip | |
Add a no-system-llvm compilecheck header
Diffstat (limited to 'src/test/codegen')
| -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: |
