gcc/libstdc++-v3/testsuite/experimental/feat-char8_t.cc
Tom Honermann 2b68cdc7e5 libstdc++: P1423R3 char8_t remediation (3/4)
Updates to existing tests

This patch updates existing tests to validate the new value for the
__cpp_lib_char8_t feature test macros and to exercise u8path factory
function invocations with std::string, std::string_view, and interator
pair arguments.

2019-11-29  Tom Honermann  <tom@honermann.net>

	Updates to existing tests
	* testsuite/experimental/feat-char8_t.cc: Updated the expected
	__cpp_lib_char8_t feature test macro value.
	* testsuite/27_io/filesystem/path/factory/u8path.cc: Added testing of
	u8path invocation with std::string, std::string_view, and iterators
	thereof.
	* testsuite/experimental/filesystem/path/factory/u8path.cc: Added
	testing of u8path invocation with std::string, std::string_view, and
	iterators thereof.

From-SVN: r278857
2019-11-29 17:43:46 +00:00

18 lines
367 B
C++

// { dg-do preprocess { target c++11 } }
// { dg-options "-fchar8_t" }
#include <atomic>
#include <filesystem>
#include <istream>
#include <limits>
#include <locale>
#include <ostream>
#include <string>
#include <string_view>
#ifndef __cpp_lib_char8_t
# error "__cpp_lib_char8_t"
#elif __cpp_lib_char8_t != 201907L
# error "__cpp_lib_char8_t != 201907L"
#endif