blob: 301b668ea15321e0eccaa64208ec478d68db76c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* Test C2Y complex increment and decrement: disallowed for C23 (warning with
-pedantic). */
/* { dg-do compile } */
/* { dg-options "-std=c23 -pedantic" } */
_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" } */
}
|