projects
/
cparser
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
dc0ef92d7b9ae5ff2c3c352df5c3908f739b13fb
[cparser]
/
shouldfail
/
offsetof.c
1
struct A {
2
int k;
3
struct B {
4
int a, b[4];
5
} blup[2];
6
struct C {
7
int a : 5;
8
int b : 3;
9
} c;
10
};
11
12
int k = __builtin_offsetof(struct A, blup[2].b[3]);
13
int k2 = __builtin_offsetof(struct A, c.b);
14
15
int main(void)
16
{
17
return k == 0;
18
}