PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / enum-incomplete-3.c
blobdb1138b56c61925ea2feb8b2e688638ce6c25758
1 /* PR c/70851 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 enum E e; /* { dg-error "storage size" } */
7 void bar (int [e]); /* { dg-error "size of unnamed array has incomplete type" } */
8 void bar2 (int [][e]); /* { dg-error "size of unnamed array has incomplete type" } */
10 void
11 foo (void)
13 int a1[e]; /* { dg-error "size of array .a1. has incomplete type" } */
14 int a2[e][3]; /* { dg-error "size of array .a2. has incomplete type" } */
16 struct S
18 int a3[e]; /* { dg-error "size of array .a3. has incomplete type" } */