Showing with 12 additions and 0 deletions.
  1. +12 −0 test/compilable/alignment.d
12 changes: 12 additions & 0 deletions test/compilable/alignment.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,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);
}