From-SVN: r49664
This commit is contained in:
Richard Henderson 2002-02-10 18:37:37 -08:00
parent fba78abb53
commit 2613bd56ac

View File

@ -0,0 +1,13 @@
/* PR c/5623 */
/* { dg-do compile } */
struct blah {
int number;
char array[];
};
void foo(void)
{
struct blah b;
b.array = "hi"; /* { dg-error "invalid use of flexible array member" } */
}