blob: 58971ca186d939ab52695f028de53d2ed80267d3 [file] [log] [blame]
/* More sequence point warning tests */
/* { dg-do compile } */
/* { dg-options "-Wsequence-point" } */
void bar(int i, int j)
{
return;
}
void foo (int i)
{
int a = i-i++; (void)a; /* { dg-warning "undefined" "sequence point warning" } */
bar (i--, i++); /* { dg-warning "undefined" "sequence point warning" } */
}