gcc/testsuite/gcc.dg/gnu23-version-2.c
raw| 1 | /* Test __STDC_VERSION__ for C23 with GNU extensions. Test that -std=gnu23 is |
| 2 | the default (replace this test when updating the default to a later version |
| 3 | than gnu23). */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "" } */ |
| 6 | |
| 7 | #if __STDC_VERSION__ == 202311L |
| 8 | int i; |
| 9 | #else |
| 10 | #error "Bad __STDC_VERSION__." |
| 11 | #endif |