summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/localization/locale.categories
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2018-02-13 17:43:24 +0000
committerDimitry Andric <dimitry@andric.com>2018-02-13 17:43:24 +0000
commit267e0f4d5fe89204534051162fa656597c5f89dd (patch)
treef41ce8c4db37cf4329c2106b7b80d90368e141c4 /libcxx/test/std/localization/locale.categories
parent1b1b80f45fdd116affb6bb7d0e08786cc5fee996 (diff)
downloadbcm5719-llvm-267e0f4d5fe89204534051162fa656597c5f89dd.tar.gz
bcm5719-llvm-267e0f4d5fe89204534051162fa656597c5f89dd.zip
Make the ctype_byname::widen test cases pass on FreeBSD.
llvm-svn: 325028
Diffstat (limited to 'libcxx/test/std/localization/locale.categories')
-rw-r--r--libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp2
-rw-r--r--libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp
index 8f51d12d7c7..1070fa613e5 100644
--- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp
@@ -55,7 +55,7 @@ int main()
assert(f.widen('.') == L'.');
assert(f.widen('a') == L'a');
assert(f.widen('1') == L'1');
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
assert(f.widen(char(-5)) == L'\u00fb');
#else
assert(f.widen(char(-5)) == wchar_t(-1));
diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp
index 7a382c4dfa2..9b841b28ba0 100644
--- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp
@@ -61,7 +61,7 @@ int main()
assert(v[3] == L'.');
assert(v[4] == L'a');
assert(v[5] == L'1');
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
assert(v[6] == L'\x85');
#else
assert(v[6] == wchar_t(-1));
OpenPOWER on IntegriCloud