2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20000926-1.c
blob2f5ca10a1ba8197fea08acb34b0337a1354e28ff
1 /* Copyright (C) 2000 Free Software Foundation.
2 by William Cohen <wcohen@redhat.com> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
6 #include <limits.h>
8 struct PDATA
10 unsigned int Dummy:(sizeof(int)*CHAR_BIT);
11 const char* PName;
14 typedef struct PDATA P_DATA;
16 struct PLAYBOOK {
17 const char * BookName;
18 P_DATA Play[0];
21 struct PLAYBOOK playbook =
23 "BookName",
25 { 1, "PName0" }, /* { dg-warning "(excess elements)|(near initialization)" "" } */