Debian Codegraph @

gcc/testsuite/gcc.dg/c23-complex-2.c

raw
1 /* Test C2Y complex increment and decrement: disallowed for C23 (warning with
2 -pedantic). */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -pedantic" } */
5
6 _Complex float a;
7
8 void
9 f (void)
10 {
11 a++; /* { dg-warning "does not support" } */
12 ++a; /* { dg-warning "does not support" } */
13 a--; /* { dg-warning "does not support" } */
14 --a; /* { dg-warning "does not support" } */
15 }