aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-complex-4.c
blob: 61d50e9a1dd895f481489dad8fb4d3ff754720c1 (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 by default (not
   pedantic).  */
/* { dg-do compile } */
/* { dg-options "-std=c23" } */

_Complex float a;

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