OSDN Git Service

2010-04-28 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20000926-1.c
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 };