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

_Complex float a;

void
f (void)
{
  a++; /* { dg-warning "does not support" } */
  ++a; /* { dg-warning "does not support" } */
  a--; /* { dg-warning "does not support" } */
  --a; /* { dg-warning "does not support" } */
}