File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
5
- refs/heads/try: 6fd0bf79eb6871f459d09b605f8dd4911e9b16f3
5
+ refs/heads/try: 061dcfac2e6358cf8b0348f531d0004aab976b73
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
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
- // xfail-test
12
11
13
- tag a_tag {
14
- a_tag( u64) ;
12
+ enum a_tag {
13
+ a_tag( u64 )
15
14
}
16
15
17
- type t_rec = {
16
+ struct t_rec {
18
17
c8 : u8 ,
19
18
t : a_tag
20
- } ;
19
+ }
21
20
22
21
fn mk_rec ( ) -> t_rec {
23
- return { c8: 0u8 , t: a_tag ( 0u64 ) } ;
22
+ return t_rec { c8 : 0u8 , t : a_tag ( 0u64 ) } ;
24
23
}
25
24
26
- fn is_8_byte_aligned ( & & u: a_tag ) -> bool {
25
+ fn is_8_byte_aligned ( u : & a_tag ) -> bool {
27
26
let p = ptr:: addr_of ( u) as u64 ;
28
27
return ( p & 7u64 ) == 0u64 ;
29
28
}
30
29
31
30
pub fn main ( ) {
32
31
let x = mk_rec ( ) ;
33
- assert ! ( is_8_byte_aligned( x. t) ) ;
32
+ assert ! ( is_8_byte_aligned( & x. t) ) ;
34
33
}
You can’t perform that action at this time.
0 commit comments