File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
//@compile-flags: -Zmin-function-alignment=8
2
2
#![ feature( fn_align) ]
3
3
4
- // When a function uses `repr( align(N) )`, the function address should be a multiple of `N`.
4
+ // When a function uses `align(N)`, the function address should be a multiple of `N`.
5
5
6
- #[ repr ( align( 256 ) ) ]
6
+ #[ align( 256 ) ]
7
7
fn foo ( ) { }
8
8
9
- #[ repr ( align( 16 ) ) ]
9
+ #[ align( 16 ) ]
10
10
fn bar ( ) { }
11
11
12
- #[ repr ( align( 4 ) ) ]
12
+ #[ align( 4 ) ]
13
13
fn baz ( ) { }
14
14
15
15
fn main ( ) {
16
16
assert ! ( ( foo as usize ) . is_multiple_of( 256 ) ) ;
17
17
assert ! ( ( bar as usize ) . is_multiple_of( 16 ) ) ;
18
18
19
- // The maximum of `repr( align(N) )` and `-Zmin-function-alignment=N` is used.
19
+ // The maximum of `align(N)` and `-Zmin-function-alignment=N` is used.
20
20
assert ! ( ( baz as usize ) . is_multiple_of( 8 ) ) ;
21
21
}
You can’t perform that action at this time.
0 commit comments