]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/c99-array-lval-6.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c99-array-lval-6.c
CommitLineData
b494fd98
EB
1/* PR c/12446 */
2/* Origin: Keith Thompson <kst@cts.com> */
3
4/* { dg-do compile } */
5/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6
7
8struct s { char c[1]; };
9
10extern struct s foo(void);
11
12void bar(void)
13{
14 char *ptr = foo().c; /* { dg-bogus "non-lvalue" "array not decaying to lvalue" } */
15}