Commit 0bab15bb by Benjamin Kosnik Committed by Benjamin Kosnik

collate_wchar_t_members.cc: Guard with _GLIBCPP_USE_WCHAR_T.


2001-08-22  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/collate_wchar_t_members.cc: Guard
	with _GLIBCPP_USE_WCHAR_T.

From-SVN: r45118
parent 0d587737
2001-08-22 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/collate_wchar_t_members.cc: Guard
with _GLIBCPP_USE_WCHAR_T.
2001-08-21 Benjamin Kosnik <bkoz@redhat.com> 2001-08-21 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/collate_byname.cc (test01): Fix. * testsuite/22_locale/collate_byname.cc (test01): Fix.
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// XXX This may not work for non-glibc locale models. // XXX This may not work for non-glibc locale models.
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
#ifdef _GLIBCPP_USE_WCHAR_T
void test01() void test01()
{ {
using namespace std; using namespace std;
...@@ -128,13 +128,16 @@ void test01() ...@@ -128,13 +128,16 @@ void test01()
i2 = coll_de.compare(strlit3, strlit3 + size3, strlit4, strlit4 + size4); i2 = coll_de.compare(strlit3, strlit3 + size3, strlit4, strlit4 + size4);
VERIFY(i1 == i2); VERIFY(i1 == i2);
} }
#endif
int main() int main()
{ {
#if _GLIBCPP_USE_WCHAR_T
test01(); test01();
#endif
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment