1 /* Copyright (C) 2000 Free Software Foundation. 2 by William Cohen <wcohen@redhat.com> */ 3 4 /* { dg-do compile } */ 5 /* { dg-options "" } */ 6 #include <limits.h> 7 8 struct PDATA 9 { 10 unsigned int Dummy:(sizeof(int)*CHAR_BIT); 11 const char* PName; 12 }; 13 14 typedef struct PDATA P_DATA; 15 16 struct PLAYBOOK { 17 const char * BookName; 18 P_DATA Play[0]; 19 }; 20 21 struct PLAYBOOK playbook = 22 { 23 "BookName", 24 { 25 { 1, "PName0" }, /* { dg-warning "(excess elements)|(near initialization)" } */ 26 } 27 }; 28