Aaron Ballman c8be7743ac Bump the value of __STDC_VERSION__ in -std=c2x mode
Previously, we reported the same value as for C17, now we report 202000L, which
is the same value currently used by GCC.

Once C23 ships, this value will be bumped to the correct date.
2021-10-17 09:23:43 -04:00

6 lines
204 B
C

// RUN: %clang_cc1 -fsyntax-only -verify -std=c2x %s
// expected-no-diagnostics
// FIXME: Test the correct value once C23 ships.
_Static_assert(__STDC_VERSION__ > 201710L, "Incorrect __STDC_VERSION__");