error22
authorMatthias Braun <matze@braunis.de>
Sat, 16 Feb 2008 15:14:18 +0000 (15:14 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 16 Feb 2008 15:14:18 +0000 (15:14 +0000)
[r18876]

parsetest/cp_error022.c [new file with mode: 0644]

diff --git a/parsetest/cp_error022.c b/parsetest/cp_error022.c
new file mode 100644 (file)
index 0000000..5df456d
--- /dev/null
@@ -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;
+}