Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / Wmultistatement-macros-5.c
blob0ac84f544809c0147ffd5b367cdf96f240717212
1 /* PR c/80116 */
2 /* { dg-options "-Wmultistatement-macros" } */
3 /* { dg-do compile } */
5 #define M(N) \
6 L ## N: \
7 x++; x++ /* { dg-warning "macro expands to multiple statements" } */
9 int x, y, tmp;
11 void
12 fn1 (void)
14 if (x) /* { dg-message "not guarded by this 'if' clause" } */
15 M (0); /* { dg-message "in expansion of macro .M." } */
16 if (x) /* { dg-message "not guarded by this 'if' clause" } */
17 M (1); /* { dg-message "in expansion of macro .M." } */