1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
%module cpp11_alignment %inline %{ struct A { int member; }; const int align1 = alignof(A::member); %} %{ // alignas - not yet working struct alignas(16) S { int num; }; alignas(double) unsigned char c[sizeof(double)]; %}