This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(libstdc++-v3) PATCH: Fix trivial typo in C++ library test case
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Mar 2003 02:00:55 -0600 (CST)
- Subject: (libstdc++-v3) PATCH: Fix trivial typo in C++ library test case
- Reply-to: rittle at labs dot mot dot com
The test case was actually looking to see if
ctype<char>::classic_table() returned non-0 and was likely propagated
instead of testing proper propagation. As installed on mainline:
* testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
Index: libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc,v
retrieving revision 1.1
diff -c -r1.1 1.cc
*** libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc 21 Jan 2003 15:29:13 -0000 1.1
--- libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc 11 Mar 2003 06:43:24 -0000
***************
*** 57,63 ****
comma_ctype obj2(tmp);
const ctype_base::mask* ctable = obj2.get_table();
! VERIFY ( tmp = ctable );
}
int main()
--- 57,63 ----
comma_ctype obj2(tmp);
const ctype_base::mask* ctable = obj2.get_table();
! VERIFY ( tmp == ctable );
}
int main()