diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2019-06-04 15:18:46 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2019-06-04 15:18:46 +0000 |
commit | 605d62e9de00b9f95a00202f66dfb03fe52ca523 (patch) | |
tree | b427f908c72957d60947deba55899c3cbc4c4ee9 /libcxx/test | |
parent | 1e63dd0b44998721fefae9f690882af927ca3c2a (diff) | |
download | bcm5719-llvm-605d62e9de00b9f95a00202f66dfb03fe52ca523.tar.gz bcm5719-llvm-605d62e9de00b9f95a00202f66dfb03fe52ca523.zip |
No longer reject inputs when using a locale that has grouping information _and_ the input has no grouping characters at all. We continue to reject cases when the input has grouping characters in the wrong place. Fixes PR#28704
llvm-svn: 362508
Diffstat (limited to 'libcxx/test')
-rw-r--r-- | libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp b/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp index 42126260d98..00b0c3a69b6 100644 --- a/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp +++ b/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp @@ -162,14 +162,14 @@ int main(int, char**) ios.imbue(std::locale(std::locale(), new my_numpunct)); { v = -1; - const char str[] = "123"; + const char str[] = "123"; // no separators at all std::ios_base::iostate err = ios.goodbit; input_iterator<const char*> iter = f.get(input_iterator<const char*>(str), input_iterator<const char*>(str+sizeof(str)), ios, err, v); assert(iter.base() == str+sizeof(str)-1); - assert(err == ios.failbit); + assert(err == ios.goodbit); assert(v == 123); } { |