13bool sanity_test_widen(
char testchar) {
14 const std::ctype<char> &test(
15 std::use_facet<std::ctype<char>>(std::locale()));
16 return test.narrow(test.widen(testchar),
'b') == testchar;
23bool sanity_test_list(
unsigned int size) {
24 std::list<unsigned int> test;
25 for (
unsigned int i = 0; i != size; ++i) {
26 test.push_back(i + 1);
29 if (test.size() != size) {
33 while (!test.empty()) {
34 if (test.back() != test.size()) {
51 [[maybe_unused]]
auto &c = test.at(1);
52 }
catch (
const std::out_of_range &) {
60 return sanity_test_widen(
'a') && sanity_test_list(100) &&
bool glibcxx_sanity_test()
bool sanity_test_range_fmt()