77
88fn main ( ) {
99 let a = 413 ;
10- #[ cfg( unset ) ]
10+ #[ cfg( FALSE ) ]
1111 let a = ( ) ;
1212 assert_eq ! ( a, 413 ) ;
1313
1414 let mut b = 612 ;
15- #[ cfg( unset ) ]
15+ #[ cfg( FALSE ) ]
1616 {
1717 b = 1111 ;
1818 }
1919 assert_eq ! ( b, 612 ) ;
2020
21- #[ cfg( unset ) ]
21+ #[ cfg( FALSE ) ]
2222 undefined_fn ( ) ;
2323
24- #[ cfg( unset ) ]
24+ #[ cfg( FALSE ) ]
2525 undefined_macro ! ( ) ;
26- #[ cfg( unset ) ]
26+ #[ cfg( FALSE ) ]
2727 undefined_macro ! [ ] ;
28- #[ cfg( unset ) ]
28+ #[ cfg( FALSE ) ]
2929 undefined_macro ! { } ;
3030
3131 // pretty printer bug...
32- // #[cfg(unset )]
32+ // #[cfg(FALSE )]
3333 // undefined_macro!{}
3434
35- let ( ) = ( #[ cfg( unset ) ] 341 , ) ; // Should this also work on parens?
36- let t = ( 1 , #[ cfg( unset ) ] 3 , 4 ) ;
35+ let ( ) = ( #[ cfg( FALSE ) ] 341 , ) ; // Should this also work on parens?
36+ let t = ( 1 , #[ cfg( FALSE ) ] 3 , 4 ) ;
3737 assert_eq ! ( t, ( 1 , 4 ) ) ;
3838
3939 let f = |_: u32 , _: u32 | ( ) ;
40- f ( 2 , 1 , #[ cfg( unset ) ] 6 ) ;
40+ f ( 2 , 1 , #[ cfg( FALSE ) ] 6 ) ;
4141
42- let _: u32 = a. clone ( #[ cfg( unset ) ] undefined) ;
42+ let _: u32 = a. clone ( #[ cfg( FALSE ) ] undefined) ;
4343
44- let _: [ ( ) ; 0 ] = [ #[ cfg( unset ) ] 126 ] ;
45- let t = [ #[ cfg( unset ) ] 1 , 2 , 6 ] ;
44+ let _: [ ( ) ; 0 ] = [ #[ cfg( FALSE ) ] 126 ] ;
45+ let t = [ #[ cfg( FALSE ) ] 1 , 2 , 6 ] ;
4646 assert_eq ! ( t, [ 2 , 6 ] ) ;
4747
4848 {
4949 let r;
50- #[ cfg( unset ) ]
50+ #[ cfg( FALSE ) ]
5151 ( r = 5 ) ;
52- #[ cfg( not( unset ) ) ]
52+ #[ cfg( not( FALSE ) ) ]
5353 ( r = 10 ) ;
5454 assert_eq ! ( r, 10 ) ;
5555 }
@@ -69,13 +69,13 @@ fn main() {
6969 }
7070 }
7171
72- let n = if_cfg ! ( unset ? {
72+ let n = if_cfg ! ( FALSE ? {
7373 413
7474 } else {
7575 612
7676 } ) ;
7777
78- assert_eq ! ( ( #[ cfg( unset ) ] 1 , #[ cfg( not( unset ) ) ] 2 ) , ( 2 , ) ) ;
78+ assert_eq ! ( ( #[ cfg( FALSE ) ] 1 , #[ cfg( not( FALSE ) ) ] 2 ) , ( 2 , ) ) ;
7979 assert_eq ! ( n, 612 ) ;
8080
8181 // check that lints work
0 commit comments