Skip to content

Commit f63adc1

Browse files
committed
Update tests
1 parent b4c1d94 commit f63adc1

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎tests/ub/out/refcount/self_referencing_initializer.rs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ fn main_0() -> i32 {
2323
x = (x + 1);
2424
let mut p: pair = <pair>::default();
2525
p = pair { a: 1, b: (p.a + 1) };
26-
let r: Ptr<i32> = (r).clone();
27-
let __tmp_0: Value<i32> = Rc::new(RefCell::new(((cr.read()) + 1)));
28-
let cr: Ptr<i32> = __tmp_0.as_pointer();
29-
return ({ ({ (x + p.b) } + { (r.read()) }) } + { (cr.read()) });
26+
return (x + p.b);
3027
}
3128
pub fn __cpp2rust_init_globals() {}

‎tests/ub/out/unsafe/self_referencing_initializer.rs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ unsafe fn main_0() -> i32 {
2626
a: 1,
2727
b: ((p.a) + (1)),
2828
};
29-
let r: *mut i32 = r;
30-
let mut __tmp_0: i32 = ((*cr) + (1));
31-
let cr: *const i32 = &mut __tmp_0;
32-
return ((((x) + (p.b)) + (*r)) + (*cr));
29+
return ((x) + (p.b));
3330
}
3431
pub unsafe fn __cpp2rust_init_globals() {}

0 commit comments

Comments
 (0)