blob: 87783f8d0f706d174dd69b6c062b353a9c17b618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
struct s {
int : 8;
char c;
};
union u {
int : 8;
char c;
};
int s1 = sizeof(struct s);
int s2 = alignof(struct s);
int u1 = sizeof(union u);
int u2 = alignof(union u);
|