Partially implement -Wdeprecated-declarations.
[cparser] / parsetest / cp_error022.c
1 typedef struct {
2         const char *string;
3 } symbol_t;
4
5 typedef struct {
6         int type;
7         union {
8                 symbol_t  *symbol;
9                 long long  blo;
10         } v;
11 } token_t;
12
13 int main(void)
14 {
15         if(__builtin_offsetof(token_t, v.symbol) != sizeof(int))
16                 return 1;
17         return 0;
18 }