blob: 58971ca186d939ab52695f028de53d2ed80267d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* 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" } */
}
|