about summary refs log tree commit diff
path: root/tests/ui/codegen/equal-pointers-unequal/as-cast/segfault.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/codegen/equal-pointers-unequal/as-cast/segfault.rs')
-rw-r--r--tests/ui/codegen/equal-pointers-unequal/as-cast/segfault.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/codegen/equal-pointers-unequal/as-cast/segfault.rs b/tests/ui/codegen/equal-pointers-unequal/as-cast/segfault.rs
index 70cbb9a52f7..c69565a81f2 100644
--- a/tests/ui/codegen/equal-pointers-unequal/as-cast/segfault.rs
+++ b/tests/ui/codegen/equal-pointers-unequal/as-cast/segfault.rs
@@ -55,6 +55,7 @@ fn main() {
     // The `Box` has been deallocated by now, so this is a dangling reference!
     let r: &u8 = &*r;
     println!("{:p}", r);
+    println!("{}", i);
 
     // The following might segfault. Or it might not.
     // Depends on the platform semantics