Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/cpp11_alignment.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

17 lines
228 B
OpenEdge ABL

%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)];
%}