aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/struct-non-lval-3.c
blob: 3020194cae07d8fa0e929611c3fcbdbf1ced6ad8 (plain)
1
2
3
4
5
6
7
/* Bug c/17855, using assignment for non-lvalue.  */
struct foo {char x, y, z[2];};
struct foo p, q;
void bar(int baz)
{
  (p = q).z[baz] = 1;
}