diff options
| author | Xiang Fan <sfanxiang@gmail.com> | 2019-09-28 07:13:53 +0800 |
|---|---|---|
| committer | Xiang Fan <sfanxiang@gmail.com> | 2019-09-28 07:13:53 +0800 |
| commit | 10c668190cb419b539a36214237382c6689f7daf (patch) | |
| tree | 25750fbeff66b2d27babd8a452ddcf0afd769911 /src/test/codegen/alloc-optimisation.rs | |
| parent | f71e0daa29b232d8f689f77fecb84dcb87fce6da (diff) | |
| download | rust-10c668190cb419b539a36214237382c6689f7daf.tar.gz rust-10c668190cb419b539a36214237382c6689f7daf.zip | |
Gate llvm.sideeffect under -Z insert-sideeffect
Diffstat (limited to 'src/test/codegen/alloc-optimisation.rs')
| -rw-r--r-- | src/test/codegen/alloc-optimisation.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/codegen/alloc-optimisation.rs b/src/test/codegen/alloc-optimisation.rs index c1e36a17ec2..c3ffaeb9547 100644 --- a/src/test/codegen/alloc-optimisation.rs +++ b/src/test/codegen/alloc-optimisation.rs @@ -7,8 +7,7 @@ pub fn alloc_test(data: u32) { // CHECK-LABEL: @alloc_test // CHECK-NEXT: start: - // CHECK-NOT: alloc - // CHECK: ret void + // CHECK-NEXT: ret void let x = Box::new(data); drop(x); } |
