@@ -19,6 +19,17 @@ pub static mut s_2: std::cell::LazyCell<i64> = std::cell::LazyCell::new(|| unsaf
1919#[ repr( C ) ]
2020#[ derive( Copy , Clone , VaArg , FnPtrArg , Default ) ]
2121pub struct Static_long_ { }
22+ pub static mut lo_3: std:: cell:: LazyCell < i32 > = std:: cell:: LazyCell :: new ( || unsafe { -1_i32 } ) ;
23+ pub static mut hi_4: std:: cell:: LazyCell < i32 > = std:: cell:: LazyCell :: new ( || unsafe { 1 } ) ;
24+ #[ repr( C ) ]
25+ #[ derive( Copy , Clone , VaArg , FnPtrArg , Default ) ]
26+ pub struct Range_int_ { }
27+ pub static mut lo_5: std:: cell:: LazyCell < i64 > =
28+ std:: cell:: LazyCell :: new ( || unsafe { ( -2_i32 as i64 ) } ) ;
29+ pub static mut hi_6: std:: cell:: LazyCell < i64 > = std:: cell:: LazyCell :: new ( || unsafe { 2_i64 } ) ;
30+ #[ repr( C ) ]
31+ #[ derive( Copy , Clone , VaArg , FnPtrArg , Default ) ]
32+ pub struct Range_long_ { }
2233pub fn main ( ) {
2334 unsafe {
2435 __cpp2rust_init_globals ( ) ;
@@ -31,10 +42,22 @@ unsafe fn main_0() -> i32 {
3142 assert ! ( ( ( * std:: cell:: LazyCell :: force_mut( & mut * & raw mut s_0) ) == ( 22 ) ) ) ;
3243 assert ! ( ( ( ( * std:: cell:: LazyCell :: force_mut( & mut * & raw mut s_1) ) as i32 ) == ( 33 ) ) ) ;
3344 assert ! ( ( ( * std:: cell:: LazyCell :: force_mut( & mut * & raw mut s_2) ) == ( 55_i64 ) ) ) ;
45+ assert ! (
46+ ( ( * std:: cell:: LazyCell :: force_mut( & mut * & raw mut lo_3) ) == ( -1_i32 ) )
47+ && ( ( * std:: cell:: LazyCell :: force_mut( & mut * & raw mut hi_4) ) == ( 1 ) )
48+ ) ;
49+ assert ! (
50+ ( ( * std:: cell:: LazyCell :: force_mut( & mut * & raw mut lo_5) ) == ( -2_i32 as i64 ) )
51+ && ( ( * std:: cell:: LazyCell :: force_mut( & mut * & raw mut hi_6) ) == ( 2_i64 ) )
52+ ) ;
3453 return 0 ;
3554}
3655pub unsafe fn __cpp2rust_init_globals ( ) {
3756 std:: cell:: LazyCell :: force ( & * & raw const s_0) ;
3857 std:: cell:: LazyCell :: force ( & * & raw const s_1) ;
3958 std:: cell:: LazyCell :: force ( & * & raw const s_2) ;
59+ std:: cell:: LazyCell :: force ( & * & raw const lo_3) ;
60+ std:: cell:: LazyCell :: force ( & * & raw const hi_4) ;
61+ std:: cell:: LazyCell :: force ( & * & raw const lo_5) ;
62+ std:: cell:: LazyCell :: force ( & * & raw const hi_6) ;
4063}
0 commit comments