Add some tests for the value of __STDC_VERSION__ in C23 mode.
Bootstrapped with no regressions for x86_64-pc-linux-gnu.
* gcc.dg/c23-version-1.c, gcc.dg/c23-version-2.c,
gcc.dg/gnu23-version-1.c: New tests.
--- /dev/null
+/* Test __STDC_VERSION__ for C23. Test -std=c23. */
+/* { dg-do compile } */
+/* { dg-options "-std=c23 -pedantic-errors" } */
+
+#if __STDC_VERSION__ == 202311L
+int i;
+#else
+#error "Bad __STDC_VERSION__."
+#endif
--- /dev/null
+/* Test __STDC_VERSION__ for C23. Test -std=iso9899:2024. */
+/* { dg-do compile } */
+/* { dg-options "-std=iso9899:2024 -pedantic-errors" } */
+
+#if __STDC_VERSION__ == 202311L
+int i;
+#else
+#error "Bad __STDC_VERSION__."
+#endif
--- /dev/null
+/* Test __STDC_VERSION__ for C23 with GNU extensions. Test -std=gnu23. */
+/* { dg-do compile } */
+/* { dg-options "-std=gnu23 -pedantic-errors" } */
+
+#if __STDC_VERSION__ == 202311L
+int i;
+#else
+#error "Bad __STDC_VERSION__."
+#endif