@@ -98,25 +98,6 @@ impl Default for Foo {
9898 }
9999}
100100impl ByteRepr for Foo { }
101- thread_local ! (
102- pub static static_p1: Value <Ptr <i32 >> = Rc :: new( RefCell :: new( Ptr :: <i32 >:: null( ) ) ) ;
103- ) ;
104- thread_local ! (
105- pub static static_p2: Value <Ptr <i32 >> = Rc :: new( RefCell :: new( Ptr :: <i32 >:: null( ) ) ) ;
106- ) ;
107- thread_local ! (
108- pub static static_cp: Value <Ptr <u8 >> = Rc :: new( RefCell :: new( Ptr :: <u8 >:: null( ) ) ) ;
109- ) ;
110- thread_local ! (
111- pub static static_arr: Value <Box <[ Ptr <i32 >] >> = Rc :: new( RefCell :: new(
112- ( 0 ..4 )
113- . map( |_| Ptr :: <i32 >:: null( ) )
114- . collect:: <Box <[ Ptr <i32 >] >>( ) ,
115- ) ) ;
116- ) ;
117- thread_local ! (
118- pub static static_pp: Value <Ptr <Ptr <i32 >>> = Rc :: new( RefCell :: new( Ptr :: <Ptr <i32 >>:: null( ) ) ) ;
119- ) ;
120101thread_local ! (
121102 pub static static_fn: Value <FnPtr <fn ( i32 ) -> i32 >> = Rc :: new( RefCell :: new( FnPtr :: null( ) ) ) ;
122103) ;
@@ -174,15 +155,6 @@ pub fn main() {
174155 std:: process:: exit ( main_0 ( ) ) ;
175156}
176157fn main_0 ( ) -> i32 {
177- assert ! ( ( * static_p1. with( Value :: clone) . borrow( ) ) . is_null( ) ) ;
178- assert ! ( ( * static_p2. with( Value :: clone) . borrow( ) ) . is_null( ) ) ;
179- assert ! ( ( * static_cp. with( Value :: clone) . borrow( ) ) . is_null( ) ) ;
180- let i: Value < i32 > = Rc :: new ( RefCell :: new ( 0 ) ) ;
181- ' loop_: while ( ( * i. borrow ( ) ) < 4 ) {
182- assert ! ( ( ( * static_arr. with( Value :: clone) . borrow( ) ) [ ( * i. borrow( ) ) as usize ] ) . is_null( ) ) ;
183- ( * i. borrow_mut ( ) ) . prefix_inc ( ) ;
184- }
185- assert ! ( ( * static_pp. with( Value :: clone) . borrow( ) ) . is_null( ) ) ;
186158 assert ! ( ( * static_fn. with( Value :: clone) . borrow( ) ) . is_null( ) ) ;
187159 assert ! ( ( * ( * static_outer. with( Value :: clone) . borrow( ) ) . p1. borrow( ) ) . is_null( ) ) ;
188160 assert ! ( ( * ( * static_outer. with( Value :: clone) . borrow( ) ) . p2. borrow( ) ) . is_null( ) ) ;
0 commit comments