blob: fb25c4ebbf1368d7b0c8f67e9d2c79bcbaf537b6 (
plain)
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)];
%}
|