c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / Wsequence-point-2.c
blob1e85e273e34ba514fb7c9c9f811daa1701a9fe8a
1 /* PR c/69661 - missing -Wsequence-point warning
2 { dg-do compile }
3 { dg-options "-Wall" } */
5 int a, b;
6 short c;
8 void fn1 (int p) { (void)p; }
10 void fn2 (void)
12 fn1(a == (c &= a = b)); /* { dg-warning "\\\[-Wsequence-point\\\]" } */