aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/alignment.d
blob: c5cc394866f465c2b7764d0698f78e20a6a1793f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* 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);
}