rt_gccstream/gcc/testsuite/gcc.c-torture/compile/struct-non-lval-3.c

8 lines
145 B
C

/* 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;
}