mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
12 lines
262 B
D
12 lines
262 B
D
/* Test alignment of stack variables.
|
|
*
|
|
* This test should be moved to "runnable" once DMD implements alignment of stack variables.
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
byte dummy;
|
|
|
|
align(32) int align32;
|
|
assert((cast(size_t)&align32 & cast(size_t)0b11111) == 0);
|
|
}
|