Commit 54bdca68 by Paolo Carlini

re PR libstdc++/33771 (FAIL: 17_intro/headers/c++1998/all.cc (test for excess errors))

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.

From-SVN: r129313
parent 64520bdc
...@@ -61,8 +61,12 @@ ...@@ -61,8 +61,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#ifdef _GLIBCXX_HAVE_WCHAR_H
#include <wchar.h> #include <wchar.h>
#endif
#ifdef _GLIBCXX_HAVE_WCTYPE_H
#include <wctype.h> #include <wctype.h>
#endif
// "C++" headers // "C++" headers
#include <algorithm> #include <algorithm>
......
...@@ -61,8 +61,12 @@ ...@@ -61,8 +61,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#ifdef _GLIBCXX_HAVE_WCHAR_H
#include <wchar.h> #include <wchar.h>
#endif
#ifdef _GLIBCXX_HAVE_WCTYPE_H
#include <wctype.h> #include <wctype.h>
#endif
// "C++" headers // "C++" headers
#include <algorithm> #include <algorithm>
...@@ -136,8 +140,12 @@ ...@@ -136,8 +140,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#ifdef _GLIBCXX_HAVE_WCHAR_H
#include <wchar.h> #include <wchar.h>
#endif
#ifdef _GLIBCXX_HAVE_WCTYPE_H
#include <wctype.h> #include <wctype.h>
#endif
// "C++" headers // "C++" headers
#include <algorithm> #include <algorithm>
......
...@@ -82,8 +82,12 @@ ...@@ -82,8 +82,12 @@
#include <tgmath.h> #include <tgmath.h>
#endif #endif
#include <time.h> #include <time.h>
#ifdef _GLIBCXX_HAVE_WCHAR_H
#include <wchar.h> #include <wchar.h>
#endif
#ifdef _GLIBCXX_HAVE_WCTYPE_H
#include <wctype.h> #include <wctype.h>
#endif
// "C++" headers // "C++" headers
#include <algorithm> #include <algorithm>
......
...@@ -82,8 +82,12 @@ ...@@ -82,8 +82,12 @@
#include <tgmath.h> #include <tgmath.h>
#endif #endif
#include <time.h> #include <time.h>
#ifdef _GLIBCXX_HAVE_WCHAR_H
#include <wchar.h> #include <wchar.h>
#endif
#ifdef _GLIBCXX_HAVE_WCTYPE_H
#include <wctype.h> #include <wctype.h>
#endif
// "C++" headers // "C++" headers
#include <algorithm> #include <algorithm>
...@@ -188,8 +192,12 @@ ...@@ -188,8 +192,12 @@
#include <tgmath.h> #include <tgmath.h>
#endif #endif
#include <time.h> #include <time.h>
#ifdef _GLIBCXX_HAVE_WCHAR_H
#include <wchar.h> #include <wchar.h>
#endif
#ifdef _GLIBCXX_HAVE_WCTYPE_H
#include <wctype.h> #include <wctype.h>
#endif
// "C++" headers // "C++" headers
#include <algorithm> #include <algorithm>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#include <cwchar> #include <cwchar>
#ifdef _GLIBCXX_HAVE_WCHAR_H
namespace gnu namespace gnu
{ {
#ifndef NULL #ifndef NULL
...@@ -38,3 +40,5 @@ namespace gnu ...@@ -38,3 +40,5 @@ namespace gnu
#error "WEOF_must_be_a_macro" #error "WEOF_must_be_a_macro"
#endif #endif
} }
#endif
...@@ -20,9 +20,13 @@ ...@@ -20,9 +20,13 @@
#include <cwctype> #include <cwctype>
#ifdef _GLIBCXX_HAVE_WCTYPE_H
namespace gnu namespace gnu
{ {
#ifndef WEOF #ifndef WEOF
#error "WEOF_must_be_a_macro" #error "WEOF_must_be_a_macro"
#endif #endif
} }
#endif
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