summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr61096-2.c
blob: fbea4d9db6bcc062e60643abb0b3f10580c42d3f (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/61077 */
/* { dg-do compile } */

struct s { char c[1]; };
extern struct s foo (void);
void
bar (void)
{
  char *t = (foo ()).c; /* { dg-error "13:invalid use of non-lvalue array" } */
}