blob: 8d378a20d83592e2380aa942728a5c9196aeda5c [file] [log] [blame]
/* APPLE LOCAL file radar 5805175 - blocks */
/* Test that pre/post incr/decr of copied-in variable cuases proper diagnostic. */
/* { dg-do compile } */
/* { dg-options "-fblocks" } */
void foo() {
static int s_i = 10;
int local;
^ { ++s_i; };
^ { local--; }; /* { dg-error "variable is not assignable" } */
++s_i;
}