Debian Codegraph @

gcc/testsuite/g++.dg/ext/char8_t-feature-test-macro-2.C

raw
1 // Test that predefined feature test macros are present when -fchar8_t is
2 // enabled.
3 // { dg-do compile }
4 // { dg-options "-fchar8_t" }
5
6 #if !defined(__cpp_char8_t)
7 # error __cpp_char8_t is not defined!
8 #elif __cpp_char8_t != 202207
9 # error __cpp_char8_t != 202207
10 #endif