summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wmultistatement-macros-6.c
blob: 5ec9cd9db26a80e9bb6928f8584c85e03df72f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR c/80116 */
/* { dg-options "-Wmultistatement-macros" } */
/* { dg-do compile } */

#define M \
  if (x) x++; x++

void
f (int x)
{
  M;
  M;
  M;
  M;
  M;
  M;
  M;
  M;
  M;
  M;
  M;
}