File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
branches/beta/src/test/run-pass Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
23
23
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
24
24
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
- refs/heads/beta: d4d6260ef1f21668194d4b3423d4b0b155e0b08e
26
+ refs/heads/beta: fcee002edfd1867ab49d9625de6c7907f484a7a9
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
28
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ #![ feature( stmt_expr_attributes) ]
11
12
12
13
use std:: mem:: size_of;
13
14
@@ -46,18 +47,15 @@ enum Ei64 {
46
47
Bi64 = 0x8000_0000
47
48
}
48
49
49
- enum Eu64 {
50
- Au64 = 0 ,
51
- Bu64 = 0x8000_0000_0000_0000
52
- }
53
-
54
50
pub fn main ( ) {
55
51
assert_eq ! ( size_of:: <Ei8 >( ) , 1 ) ;
56
52
assert_eq ! ( size_of:: <Eu8 >( ) , 1 ) ;
57
53
assert_eq ! ( size_of:: <Ei16 >( ) , 2 ) ;
58
54
assert_eq ! ( size_of:: <Eu16 >( ) , 2 ) ;
59
55
assert_eq ! ( size_of:: <Ei32 >( ) , 4 ) ;
60
56
assert_eq ! ( size_of:: <Eu32 >( ) , 4 ) ;
57
+ #[ cfg( target_pointer_width = "64" ) ]
61
58
assert_eq ! ( size_of:: <Ei64 >( ) , 8 ) ;
62
- assert_eq ! ( size_of:: <Eu64 >( ) , 8 ) ;
59
+ #[ cfg( target_pointer_width = "32" ) ]
60
+ assert_eq ! ( size_of:: <Ei64 >( ) , 4 ) ;
63
61
}
You can’t perform that action at this time.
0 commit comments