Add L suffix to __cpp_lib_char8_t value

* include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
	constant.
	* testsuite/experimental/feat-char8_t.cc: Likewise.

From-SVN: r269421
This commit is contained in:
Jonathan Wakely 2019-03-06 12:13:19 +00:00 committed by Jonathan Wakely
parent 28d85efbfb
commit 99447f700d
3 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,9 @@
2019-03-06 Jonathan Wakely <jwakely@redhat.com>
* include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
constant.
* testsuite/experimental/feat-char8_t.cc: Likewise.
* include/std/type_traits [C++20] (is_bounded_array)
(is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
Define.

View file

@ -633,7 +633,7 @@ namespace std
# endif
#endif
#ifdef _GLIBCXX_USE_CHAR8_T
# define __cpp_lib_char8_t 201811
# define __cpp_lib_char8_t 201811L
#endif
/* Define if __float128 is supported on this host. */

View file

@ -12,6 +12,6 @@
#ifndef __cpp_lib_char8_t
# error "__cpp_lib_char8_t"
#elif __cpp_lib_char8_t != 201811
# error "__cpp_lib_char8_t != 201811"
#elif __cpp_lib_char8_t != 201811L
# error "__cpp_lib_char8_t != 201811L"
#endif