summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-24 23:48:45 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-24 23:48:45 +0000
commit0d88acb8e515c7a55dca91be82028084faf6bacc (patch)
tree88777d03fb87bc97cbf3a9e095dffab96c11529d /libstdc++-v3/testsuite
parent4f8fef6a61e97a7660d1b8d886523e3281d00f0f (diff)
downloadgcc-0d88acb8e515c7a55dca91be82028084faf6bacc.tar.gz
2000-11-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* testsuite/22_locale/codecvt_wchar_t_char.cc (main): Add _GLIBCPP_USE_WCHAR_T guards. * configure.in (AC_OUTPUT_COMMANDS): Remove, just run scripts as is, so that checks for existence of generated files actually work. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt_wchar_t_char.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt_wchar_t_char.cc b/libstdc++-v3/testsuite/22_locale/codecvt_wchar_t_char.cc
index 91505beef27..3f7c83bcb39 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt_wchar_t_char.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt_wchar_t_char.cc
@@ -34,6 +34,7 @@
// or, can use this explicit "C" initialization:
// w_codecvt::state_type state01 = {0, 0};
// .. except Ulrich says: Use memset. Always use memset. Feel the force...
+#ifdef _GLIBCPP_USE_WCHAR_T
void
zero_state(std::mbstate_t& state)
{ std::memset(&state, 0, sizeof(std::mbstate_t)); }
@@ -109,10 +110,14 @@ void test01()
delete [] e_arr;
delete [] i_arr;
}
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
+
int main ()
{
+#if _GLIBCPP_USE_WCHAR_T
test01();
+#endif
return 0;
}