| 1 |
/* PR c/69661 - missing -Wsequence-point warning |
| 2 |
{ dg-do compile } |
| 3 |
{ dg-options "-Wall" } */ |
| 4 |
|
| 5 |
int a, b; |
| 6 |
short c; |
| 7 |
|
| 8 |
void fn1 (int p) { (void)p; } |
| 9 |
|
| 10 |
void fn2 (void) |
| 11 |
{ |
| 12 |
fn1(a == (c &= a = b)); /* { dg-warning "\\\[-Wsequence-point\\\]" } */ |
| 13 |
} |