aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/char8_t-predefined-macros-1.C
blob: 36d411b20db43f20b847d5db11e0a2e8bda94397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that char8_t related predefined macros are not present when -fchar8_t is
// not enabled.
// { dg-do compile }
// { dg-options "-fno-char8_t" }

#if defined(__CHAR8_TYPE__)
#error __CHAR8_TYPE__ is defined!
#endif

#if defined(__GCC_ATOMIC_CHAR8_T_LOCK_FREE)
#error __GCC_ATOMIC_CHAR8_T_LOCK_FREE is defined!
#endif