gcc/testsuite/gcc.dg/c2y-complex-2.c
raw| 1 | /* Test C2Y complex increment and decrement: warning with -Wc23-c2y-compat. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=c2y -pedantic-errors -Wc23-c2y-compat" } */ |
| 4 | |
| 5 | _Complex float a; |
| 6 | |
| 7 | void |
| 8 | f (void) |
| 9 | { |
| 10 | a++; /* { dg-warning "does not support" } */ |
| 11 | ++a; /* { dg-warning "does not support" } */ |
| 12 | a--; /* { dg-warning "does not support" } */ |
| 13 | --a; /* { dg-warning "does not support" } */ |
| 14 | } |