diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-11 05:31:00 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-11 05:31:00 +0000 |
commit | c71bd55b5dd20dd94c5b87a30adb1da7e81c5114 (patch) | |
tree | 51ebcc46d3d70c5c3d18b752ab7e2910ff481f78 /libcxx/test/std/localization | |
parent | 72967a56e17c3ba7f1f689aaf569dd0648a1d3df (diff) | |
download | bcm5719-llvm-c71bd55b5dd20dd94c5b87a30adb1da7e81c5114.tar.gz bcm5719-llvm-c71bd55b5dd20dd94c5b87a30adb1da7e81c5114.zip |
Enable the -Wsign-compare warning to better support MSVC
llvm-svn: 289363
Diffstat (limited to 'libcxx/test/std/localization')
3 files changed, 4 insertions, 3 deletions
diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp index 8f9d1e6cd1f..f645b32f269 100644 --- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp +++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp @@ -36,5 +36,5 @@ int main() assert(from_next - from == 9); assert(to_next - to == 9); for (unsigned i = 0; i < 9; ++i) - assert(to[i] == from[i]); + assert(to[i] == static_cast<char32_t>(from[i])); } diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp index 4e0f600097a..05a90d33d31 100644 --- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp +++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp @@ -40,6 +40,6 @@ int main() assert(from_next - from == 9); assert(to_next - to == 9); for (unsigned i = 0; i < 9; ++i) - assert(to[i] == from[i]); + assert(static_cast<char32_t>(to[i]) == from[i]); } } diff --git a/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long_long.pass.cpp b/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long_long.pass.cpp index fe00876251c..86e64e6222b 100644 --- a/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long_long.pass.cpp +++ b/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long_long.pass.cpp @@ -100,6 +100,7 @@ int main() ios, err, v); assert(iter.base() == str+sizeof(str)-1); assert(err == ios.goodbit); - assert(v == 0x8000000000000000LL); + const long long expect = 0x8000000000000000LL; + assert(v == expect); } } |