From: Matthias Braun Date: Sat, 16 Feb 2008 15:14:18 +0000 (+0000) Subject: error22 X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1f04ba7696f7563a7468b9c3b6fb540d4987172f;p=cparser error22 [r18876] --- diff --git a/parsetest/cp_error022.c b/parsetest/cp_error022.c new file mode 100644 index 0000000..5df456d --- /dev/null +++ b/parsetest/cp_error022.c @@ -0,0 +1,18 @@ +typedef struct { + const char *string; +} symbol_t; + +typedef struct { + int type; + union { + symbol_t *symbol; + long long blo; + } v; +} token_t; + +int main(void) +{ + if(__builtin_offsetof(token_t, v.symbol) != sizeof(int)) + return 1; + return 0; +}