diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-15 09:34:49 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-15 09:34:49 +0000 |
commit | 4f8570c73af7b30817ece145c93b914c8f067c1f (patch) | |
tree | fb9aa57c48b2d49491ea1081f49066c0a6841f76 /libstdc++-v3/testsuite/17_intro | |
parent | 16bf64db09c393f14dd07753360279d943b3498b (diff) | |
download | gcc-4f8570c73af7b30817ece145c93b914c8f067c1f.tar.gz |
2007-10-15 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/33771
PR libstdc++/33773
* testsuite/21_strings/headers/cwchar/macros.cc: Guard test with
_GLIBCXX_HAVE_WCHAR_H.
* testsuite/21_strings/headers/cwctype/macros.cc: Likewise with
_GLIBCXX_HAVE_WCTYPE_H.
* testsuite/17_intro/headers/c++200x/all.cc: Guard inclusions
of <wchar.h> and <wctype.h>.
* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc:
Likewise.
* testsuite/17_intro/headers/c++1998/all.cc: Likewise.
* testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc:
Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129313 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro')
4 files changed, 24 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all.cc index 2704e491f4d..6416734276a 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all.cc @@ -61,8 +61,12 @@ #include <stdlib.h> #include <string.h> #include <time.h> +#ifdef _GLIBCXX_HAVE_WCHAR_H #include <wchar.h> +#endif +#ifdef _GLIBCXX_HAVE_WCTYPE_H #include <wctype.h> +#endif // "C++" headers #include <algorithm> diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc index a1cb289039a..831616b9512 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc @@ -61,8 +61,12 @@ #include <stdlib.h> #include <string.h> #include <time.h> +#ifdef _GLIBCXX_HAVE_WCHAR_H #include <wchar.h> +#endif +#ifdef _GLIBCXX_HAVE_WCTYPE_H #include <wctype.h> +#endif // "C++" headers #include <algorithm> @@ -136,8 +140,12 @@ #include <stdlib.h> #include <string.h> #include <time.h> +#ifdef _GLIBCXX_HAVE_WCHAR_H #include <wchar.h> +#endif +#ifdef _GLIBCXX_HAVE_WCTYPE_H #include <wctype.h> +#endif // "C++" headers #include <algorithm> diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++200x/all.cc b/libstdc++-v3/testsuite/17_intro/headers/c++200x/all.cc index 76566d0ac91..753f08e0077 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++200x/all.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++200x/all.cc @@ -82,8 +82,12 @@ #include <tgmath.h> #endif #include <time.h> +#ifdef _GLIBCXX_HAVE_WCHAR_H #include <wchar.h> +#endif +#ifdef _GLIBCXX_HAVE_WCTYPE_H #include <wctype.h> +#endif // "C++" headers #include <algorithm> diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc b/libstdc++-v3/testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc index d788be21578..9aa802c7041 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc @@ -82,8 +82,12 @@ #include <tgmath.h> #endif #include <time.h> +#ifdef _GLIBCXX_HAVE_WCHAR_H #include <wchar.h> +#endif +#ifdef _GLIBCXX_HAVE_WCTYPE_H #include <wctype.h> +#endif // "C++" headers #include <algorithm> @@ -188,8 +192,12 @@ #include <tgmath.h> #endif #include <time.h> +#ifdef _GLIBCXX_HAVE_WCHAR_H #include <wchar.h> +#endif +#ifdef _GLIBCXX_HAVE_WCTYPE_H #include <wctype.h> +#endif // "C++" headers #include <algorithm> |