swig/Examples/test-suite/cpp11_alignment.i

18 lines
257 B
OpenEdge ABL

%module cpp11_alignment
%inline %{
struct A {
int member;
};
const int align1 = alignof(int);
const int align2 = alignof(int *);
%}
%{
// alignas - not yet working
struct alignas(16) S {
int num;
};
alignas(double) unsigned char c[sizeof(double)];
%}