about summary refs log tree commit diff
path: root/src/test/codegen/alloc-optimisation.rs
diff options
context:
space:
mode:
authorXiang Fan <sfanxiang@gmail.com>2019-09-28 07:13:53 +0800
committerXiang Fan <sfanxiang@gmail.com>2019-09-28 07:13:53 +0800
commit10c668190cb419b539a36214237382c6689f7daf (patch)
tree25750fbeff66b2d27babd8a452ddcf0afd769911 /src/test/codegen/alloc-optimisation.rs
parentf71e0daa29b232d8f689f77fecb84dcb87fce6da (diff)
downloadrust-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.rs3
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);
 }