summaryrefslogtreecommitdiff
path: root/Examples/test-suite/cpp11_alignment.i
blob: 135f6364107299219432a31600b5cf2f5cf86665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%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)];
%}