aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-complex-3.c
blob: 6fef30105b091a60356278e63ee09cabb944a4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Test C2Y complex increment and decrement: allowed for C23 with
   -Wno-c23-c2y-compat.  */
/* { dg-do compile } */
/* { dg-options "-std=c23 -pedantic-errors -Wno-c23-c2y-compat" } */

_Complex float a;

void
f (void)
{
  a++;
  ++a;
  a--;
  --a;
}