This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[libstdc++ patch] Committed: signed/unsigned wchar_t tweaks in testsuite
- From: "Doug Gregor" <doug dot gregor at gmail dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>, "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 2 Jul 2007 09:13:45 -0400
- Subject: [libstdc++ patch] Committed: signed/unsigned wchar_t tweaks in testsuite
This patch fixes tweaks some line numbers in the libstdc++ test suite,
removes some uses of "unsigned wchar_t", and removes a stray
semicolon. It fixes the regressions caused by my signed/unsigned
wchar_t tweaks to libstdc++-v3.
Tested powerpc-apple-darwin8.10.0; committed to mainlne as obvious.
- Doug
2007-07-02 Douglas Gregor <doug.gregor@gmail.com>
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
Tweak line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Ditto.
* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc:
Don't try to create an unsigned wchar_t.
* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc:
Don't try to create an unsigned wchar_t.
* testsuite/util/testsuite_hooks.h: Remove a stray semicolon.
Index: testsuite/20_util/make_signed/requirements/typedefs_neg.cc
===================================================================
--- testsuite/20_util/make_signed/requirements/typedefs_neg.cc (revision 126184)
+++ testsuite/20_util/make_signed/requirements/typedefs_neg.cc (working copy)
@@ -49,8 +49,8 @@ void test01()
// { dg-error "instantiated from here" "" { target *-*-* } 41 }
// { dg-error "instantiated from here" "" { target *-*-* } 43 }
-// { dg-error "invalid use of incomplete type" "" { target *-*-* } 497 }
-// { dg-error "declaration of" "" { target *-*-* } 463 }
+// { dg-error "invalid use of incomplete type" "" { target *-*-* } 489 }
+// { dg-error "declaration of" "" { target *-*-* } 455 }
// { dg-excess-errors "At global scope" }
// { dg-excess-errors "In instantiation of" }
Index: testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc
===================================================================
--- testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc (revision
126184)
+++ testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc (working copy)
@@ -49,8 +49,8 @@ void test01()
// { dg-error "instantiated from here" "" { target *-*-* } 41 }
// { dg-error "instantiated from here" "" { target *-*-* } 43 }
-// { dg-error "invalid use of incomplete type" "" { target *-*-* } 418 }
-// { dg-error "declaration of" "" { target *-*-* } 384 }
+// { dg-error "invalid use of incomplete type" "" { target *-*-* } 414 }
+// { dg-error "declaration of" "" { target *-*-* } 380 }
// { dg-excess-errors "At global scope" }
// { dg-excess-errors "In instantiation of" }
Index: testsuite/20_util/make_unsigned/requirements/typedefs-1.cc
===================================================================
--- testsuite/20_util/make_unsigned/requirements/typedefs-1.cc (revision 126184)
+++ testsuite/20_util/make_unsigned/requirements/typedefs-1.cc (working copy)
@@ -49,7 +49,7 @@ void test01()
#ifdef _GLIBCXX_USE_WCHAR_T
typedef make_unsigned<volatile wchar_t>::type test23_type;
- VERIFY( (is_same<test23_type, volatile unsigned wchar_t>::value) );
+ VERIFY( (is_same<test23_type, volatile wchar_t>::value) );
#endif
typedef make_unsigned<test_enum>::type test25_type;
Index: testsuite/20_util/make_unsigned/requirements/typedefs-2.cc
===================================================================
--- testsuite/20_util/make_unsigned/requirements/typedefs-2.cc (revision 126184)
+++ testsuite/20_util/make_unsigned/requirements/typedefs-2.cc (working copy)
@@ -49,7 +49,7 @@ void test01()
#ifdef _GLIBCXX_USE_WCHAR_T
typedef make_unsigned<volatile wchar_t>::type test23_type;
- VERIFY( (is_same<test23_type, volatile unsigned wchar_t>::value) );
+ VERIFY( (is_same<test23_type, volatile wchar_t>::value) );
#endif
typedef make_unsigned<test_enum>::type test25_type;
Index: testsuite/util/testsuite_hooks.h
===================================================================
--- testsuite/util/testsuite_hooks.h (revision 126184)
+++ testsuite/util/testsuite_hooks.h (working copy)
@@ -134,7 +134,7 @@ namespace __gnu_test
func_callback(const func_callback&);
public:
- func_callback(): _M_size(0) { };
+ func_callback(): _M_size(0) { }
int
size() const { return _M_size; }