blob: 00db20a22b093dafaf40decf1f50e7cbf6b61e3c [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-O2" } */
extern void abort (void);
int A, B;
void foo()
{
long x = 3;
(void)({
A = B + x + ((1) - 1);
return; /* { dg-warning "statement-expressions should end with a non-void expression" "" { xfail *-*-* } } */
});
}
int
main()
{
B = 5;
foo();
if (A != 8)
abort ();
return 0;
}