aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-06-01 19:01:37 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-06-01 19:02:42 +0100
commitb514fce354b5309a9c232a3fe9347e3abde4385f (patch)
tree8e5523e863ea508dd7963c1bd875eefbcb324b47 /libstdc++-v3/testsuite/22_locale
parent250cf86735fc9e088cc2309c520adb655790eb99 (diff)
downloadgcc-b514fce354b5309a9c232a3fe9347e3abde4385f.zip
gcc-b514fce354b5309a9c232a3fe9347e3abde4385f.tar.gz
gcc-b514fce354b5309a9c232a3fe9347e3abde4385f.tar.bz2
libstdc++: Fix new test for C++98 mode [PR 89728]
The isblank class is not supported until C++11. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * testsuite/22_locale/ctype/is/string/89728_neg.cc: Only test isblank for C++11 and later.
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale')
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc
index 9f15620..89843b6 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc
@@ -45,7 +45,9 @@ void test01()
std::isxdigit(make_str<char, 7>(), loc); // { dg-error "required from here" }
std::isalnum(make_str<char, 8>(), loc); // { dg-error "required from here" }
std::isgraph(make_str<char, 9>(), loc); // { dg-error "required from here" }
- std::isblank(make_str<char, 10>(), loc); // { dg-error "required from here" }
+#if __cplusplus >= 201103
+ std::isblank(make_str<char, 10>(), loc); // { dg-error "required from here" "" { target c++11 } }
+#endif
std::toupper(make_str<char, 11>(), loc); // { dg-error "required from here" }
std::tolower(make_str<char, 12>(), loc); // { dg-error "required from here" }
}
@@ -66,7 +68,9 @@ void test02()
std::isxdigit(make_str<wchar_t, 7>(), loc); // { dg-error "required from here" }
std::isalnum(make_str<wchar_t, 8>(), loc); // { dg-error "required from here" }
std::isgraph(make_str<wchar_t, 9>(), loc); // { dg-error "required from here" }
- std::isblank(make_str<wchar_t, 10>(), loc); // { dg-error "required from here" }
+#if __cplusplus >= 201103
+ std::isblank(make_str<wchar_t, 10>(), loc); // { dg-error "required from here" "" { target c++11 } }
+#endif
std::toupper(make_str<wchar_t, 11>(), loc); // { dg-error "required from here" }
std::tolower(make_str<wchar_t, 12>(), loc); // { dg-error "required from here" }
}