blob: 3049ed184971b3b20503b6ca46ad30a1548572e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct foo {
char bar;
int baz;
};
int main(void)
{
bool ret = (
(sizeof(foo::bar) == 1) &&
(sizeof(foo::baz) >= sizeof(foo::bar)) &&
(sizeof(foo) >= sizeof(foo::bar)+sizeof(foo::baz))
);
return ret ? 0 : 1;
}
|