Debian Codegraph @

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

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