projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1b80f
)
Make the ctype_byname::widen test cases pass on FreeBSD.
author
Dimitry Andric
<dimitry@andric.com>
Tue, 13 Feb 2018 17:43:24 +0000
(17:43 +0000)
committer
Dimitry Andric
<dimitry@andric.com>
Tue, 13 Feb 2018 17:43:24 +0000
(17:43 +0000)
llvm-svn: 325028
libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp
patch
|
blob
|
history
libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp
patch
|
blob
|
history
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
8f51d12
..
1070fa6
100644
(file)
--- 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');
-#if
def __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
7a382c4
..
9b841b2
100644
(file)
--- 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');
-#if
def __APPLE__
+#if
defined(__APPLE__) || defined(__FreeBSD__)
assert(v[6] == L'\x85');
#else
assert(v[6] == wchar_t(-1));