summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20000926-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/20000926-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20000926-1.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20000926-1.c b/gcc/testsuite/gcc.dg/20000926-1.c
new file mode 100644
index 000000000..2f5ca10a1
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20000926-1.c
@@ -0,0 +1,27 @@
+/* Copyright (C) 2000 Free Software Foundation.
+ by William Cohen <wcohen@redhat.com> */
+
+/* { dg-do compile } */
+/* { dg-options "" } */
+#include <limits.h>
+
+struct PDATA
+{
+ unsigned int Dummy:(sizeof(int)*CHAR_BIT);
+ const char* PName;
+};
+
+typedef struct PDATA P_DATA;
+
+struct PLAYBOOK {
+ const char * BookName;
+ P_DATA Play[0];
+};
+
+struct PLAYBOOK playbook =
+{
+ "BookName",
+ {
+ { 1, "PName0" }, /* { dg-warning "(excess elements)|(near initialization)" "" } */
+ }
+};