Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / c-c++-common / Wsequence-point-1.c
blob60dd55bbb08677cd4b1e3859ff571842ea5c2404
1 /* PR c++/57274 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wsequence-point" } */
5 void foo (int, int);
7 void
8 bar (int *x)
10 foo (*x++, sizeof (*x)); /* { dg-bogus "may be undefined" } */
13 void
14 baz (int *x)
16 foo (*x, sizeof (*x++) + sizeof (*x++)); /* { dg-bogus "may be undefined" } */