1 /* PR c/70851 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4
5 enum E e; /* { dg-error "storage size" } */
6
7 void bar (int [e]); /* { dg-error "has an incomplete type" } */
8 void bar2 (int [][e]); /* { dg-error "has an incomplete type" } */
9
10 void
foo(void)11 foo (void)
12 {
13 int a1[e]; /* { dg-error "has an incomplete type" } */
14 int a2[e][3]; /* { dg-error "has an incomplete type" } */
15
16 struct S
17 {
18 int a3[e]; /* { dg-error "has an incomplete type" } */
19 };
20 }
21