* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-array-lval-6.c
blob426b3c75c90eab585b6b65ebf7fcc075a2e35d85
1 /* PR c/12446 */
2 /* Origin: Keith Thompson <kst@cts.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
8 struct s { char c[1]; };
10 extern struct s foo(void);
12 void bar(void)
14 char *ptr = foo().c; /* { dg-bogus "non-lvalue" "array not decaying to lvalue" } */