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 11//@compile-flags: -Zmin-function-alignment=8
22#![ feature( fn_align) ]
33
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`.
55
6- #[ repr ( align( 256 ) ) ]
6+ #[ align( 256 ) ]
77fn foo ( ) { }
88
9- #[ repr ( align( 16 ) ) ]
9+ #[ align( 16 ) ]
1010fn bar ( ) { }
1111
12- #[ repr ( align( 4 ) ) ]
12+ #[ align( 4 ) ]
1313fn baz ( ) { }
1414
1515fn main ( ) {
1616 assert ! ( ( foo as usize ) . is_multiple_of( 256 ) ) ;
1717 assert ! ( ( bar as usize ) . is_multiple_of( 16 ) ) ;
1818
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.
2020 assert ! ( ( baz as usize ) . is_multiple_of( 8 ) ) ;
2121}
You can’t perform that action at this time.
0 commit comments