Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / c90-array-lval-6.c
blobf42ef52bd190167a8be3f16d6122e7e2fcb59308
1 /* PR c/12446 */
2 /* Origin: Keith Thompson <kst@cts.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-std=iso9899:1990 -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 "warning" "warning in place of error" } */
16 /* { dg-error "non-lvalue" "array not decaying to lvalue" { target *-*-* } 14 } */