Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/enum-incomplete-3.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR c/70851 */ /* { dg-do compile } */ /* { dg-options "" } */ enum E e; /* { dg-error "storage size" } */ void bar (int [e]); /* { dg-error "has an incomplete type" } */ void bar2 (int [][e]); /* { dg-error "has an incomplete type" } */ void foo (void) { int a1[e]; /* { dg-error "has an incomplete type" } */ int a2[e][3]; /* { dg-error "has an incomplete type" } */ struct S { int a3[e]; /* { dg-error "has an incomplete type" } */ }; }