2001-05-11 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 May 2001 16:53:08 +0000 (16:53 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 May 2001 16:53:08 +0000 (16:53 +0000)
* testsuite/*/*.cc: Remove spaces, make sure testcases return zero.
* testsuite/config/default.exp: Update bugs email address.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41997 138bc75d-0d04-0410-961f-82ee72b054a4

92 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/17_intro/header_ciso646.cc
libstdc++-v3/testsuite/17_intro/header_cstdio.cc
libstdc++-v3/testsuite/17_intro/header_cstdlib.cc
libstdc++-v3/testsuite/17_intro/header_cstring.cc
libstdc++-v3/testsuite/17_intro/header_ctime.cc
libstdc++-v3/testsuite/17_intro/header_cwchar.cc
libstdc++-v3/testsuite/17_intro/header_cwctype.cc
libstdc++-v3/testsuite/17_intro/header_fstream.cc
libstdc++-v3/testsuite/17_intro/header_iomanip.cc
libstdc++-v3/testsuite/17_intro/header_ios.cc
libstdc++-v3/testsuite/17_intro/header_iosfwd.cc
libstdc++-v3/testsuite/17_intro/header_iostream.cc
libstdc++-v3/testsuite/17_intro/header_istream.cc
libstdc++-v3/testsuite/17_intro/header_ostream.cc
libstdc++-v3/testsuite/17_intro/header_sstream.cc
libstdc++-v3/testsuite/17_intro/header_streambuf.cc
libstdc++-v3/testsuite/17_intro/headers.cc
libstdc++-v3/testsuite/17_intro/headers_c++.cc
libstdc++-v3/testsuite/17_intro/headers_c.cc
libstdc++-v3/testsuite/18_support/numeric_limits.cc
libstdc++-v3/testsuite/21_strings/append.cc
libstdc++-v3/testsuite/21_strings/c_strings.cc
libstdc++-v3/testsuite/21_strings/capacity.cc
libstdc++-v3/testsuite/21_strings/char_traits_requirements.cc
libstdc++-v3/testsuite/21_strings/compare.cc
libstdc++-v3/testsuite/21_strings/ctor_copy_dtor.cc
libstdc++-v3/testsuite/21_strings/element_access.cc
libstdc++-v3/testsuite/21_strings/find.cc
libstdc++-v3/testsuite/21_strings/insert.cc
libstdc++-v3/testsuite/21_strings/inserters_extractors.cc
libstdc++-v3/testsuite/21_strings/invariants.cc
libstdc++-v3/testsuite/21_strings/nonmember.cc
libstdc++-v3/testsuite/21_strings/operations.cc
libstdc++-v3/testsuite/21_strings/replace.cc
libstdc++-v3/testsuite/21_strings/rfind.cc
libstdc++-v3/testsuite/21_strings/substr.cc
libstdc++-v3/testsuite/22_locale/codecvt_char_char.cc
libstdc++-v3/testsuite/22_locale/codecvt_unicode_char.cc
libstdc++-v3/testsuite/22_locale/codecvt_unicode_wchar_t.cc
libstdc++-v3/testsuite/22_locale/codecvt_wchar_t_char.cc
libstdc++-v3/testsuite/22_locale/ctype_char_members.cc
libstdc++-v3/testsuite/22_locale/ctype_wchar_t_members.cc
libstdc++-v3/testsuite/22_locale/facet.cc
libstdc++-v3/testsuite/22_locale/members.cc
libstdc++-v3/testsuite/22_locale/numpunct_byname.cc
libstdc++-v3/testsuite/22_locale/numpunct_char_members.cc
libstdc++-v3/testsuite/23_containers/multiset.cc
libstdc++-v3/testsuite/23_containers/vector_ctor.cc
libstdc++-v3/testsuite/23_containers/vector_element_access.cc
libstdc++-v3/testsuite/23_containers/vector_modifiers.cc
libstdc++-v3/testsuite/24_iterators/istreambuf_iterator.cc
libstdc++-v3/testsuite/24_iterators/iterator.cc
libstdc++-v3/testsuite/24_iterators/ostreambuf_iterator.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound.cc
libstdc++-v3/testsuite/25_algorithms/min_max.cc
libstdc++-v3/testsuite/26_numerics/binary_closure.cc
libstdc++-v3/testsuite/26_numerics/buggy_complex.cc
libstdc++-v3/testsuite/26_numerics/c_math.cc
libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc
libstdc++-v3/testsuite/26_numerics/valarray.cc
libstdc++-v3/testsuite/27_io/filebuf.cc
libstdc++-v3/testsuite/27_io/filebuf_members.cc
libstdc++-v3/testsuite/27_io/fpos.cc
libstdc++-v3/testsuite/27_io/ifstream_members.cc
libstdc++-v3/testsuite/27_io/ios_base_callbacks.cc
libstdc++-v3/testsuite/27_io/ios_base_members_static.cc
libstdc++-v3/testsuite/27_io/ios_base_storage.cc
libstdc++-v3/testsuite/27_io/ios_ctor.cc
libstdc++-v3/testsuite/27_io/ios_members.cc
libstdc++-v3/testsuite/27_io/istream.cc
libstdc++-v3/testsuite/27_io/istream_extractor_arith.cc
libstdc++-v3/testsuite/27_io/istream_extractor_char.cc
libstdc++-v3/testsuite/27_io/istream_extractor_other.cc
libstdc++-v3/testsuite/27_io/istream_manip.cc
libstdc++-v3/testsuite/27_io/istream_seeks.cc
libstdc++-v3/testsuite/27_io/istream_sentry.cc
libstdc++-v3/testsuite/27_io/istream_unformatted.cc
libstdc++-v3/testsuite/27_io/istringstream_members.cc
libstdc++-v3/testsuite/27_io/narrow_stream_objects.cc
libstdc++-v3/testsuite/27_io/ofstream_members.cc
libstdc++-v3/testsuite/27_io/ostream.cc
libstdc++-v3/testsuite/27_io/ostream_inserter_arith.cc
libstdc++-v3/testsuite/27_io/ostream_inserter_char.cc
libstdc++-v3/testsuite/27_io/ostream_inserter_other.cc
libstdc++-v3/testsuite/27_io/ostream_manip.cc
libstdc++-v3/testsuite/27_io/ostream_seeks.cc
libstdc++-v3/testsuite/27_io/ostream_unformatted.cc
libstdc++-v3/testsuite/27_io/streambuf.cc
libstdc++-v3/testsuite/27_io/stringbuf.cc
libstdc++-v3/testsuite/27_io/stringstream.cc
libstdc++-v3/testsuite/config/default.exp

index a88f124..d283b7f 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-11   Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/*/*.cc: Remove spaces, make sure testcases return zero.
+       * testsuite/config/default.exp: Update bugs email address.
+       
 2001-05-11  Richard Henderson  <rth@redhat.com>
 
        * libsupc++/eh_personality.cc: Include unwind-pe.h.  Remove
@@ -17,7 +22,6 @@
        Change LDFLAGS to LIBS.
        Consistently name procedures libstdc++-XXX.
        * testsuite/libstdc++.tests/tests.exp: Use new procedure names.
-       * testsuite/config/default.exp: Kill spaces.
        
 2001-05-08  Benjamin Kosnik  <bkoz@fillmore.constant.com>
 
index 38d7cd5..383cc0a 100644 (file)
 
 #include <cstdio>
 
-
 int main(void)
 {
   // Make sure size_t is in namespace std
-  std::size_t i = 5;            // { dg-do compile }
+  std::size_t i = 5;
   return 0;
 }
-
-
-
-
index 5ce60cb..32827cf 100644 (file)
@@ -32,7 +32,7 @@ void test01()
 void test02()
 {
   // Make sure size_t is in namespace std
-  std::size_t i = 5;            // { dg-do compile }
+  std::size_t i = 5;
 }
 
 int main()
@@ -41,6 +41,3 @@ int main()
   test02();
   return 0;
 }
-
-
-
index 02d51ea..ae8852a 100644 (file)
 int main(void)
 {
   // Make sure size_t is in namespace std
-  // { dg-do compile }
   std::size_t i = std::strlen("tibet shop/san francisco (415) 982-0326");
   return 0;
 }
-
-
-
-
index 98f48b7..03f8294 100644 (file)
 int main(void)
 {
   // Make sure size_t is in namespace std
-  std::size_t i = 5;            // { dg-do compile }
+  std::size_t i = 5;
   return 0;
 }
-
-
-
-
index 0b421ee..cdc91b2 100644 (file)
@@ -26,6 +26,6 @@
 int main(void)
 {
   // Make sure size_t is in namespace std
-  std::size_t i = 5;            // { dg-do compile }
+  std::size_t i = 5;
   return 0;
 }
index e5db1b5..8374a46 100644 (file)
 #if _GLIBCPP_USE_WCHAR_T
 #include <cwctype>
   // Make sure wint_t is in namespace std
-  std::wint_t i = 5;            // { dg-do compile }
+  std::wint_t i = 5;
 #endif
 
 int main(void)
 {
   return 0;
 }
-
-
-
-
index 1163fd1..9d510ac 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, fstream
 
-#include <fstream>              // { dg-do compile }
+#include <fstream>
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index d9929f4..68067d9 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, iomanip
 
-#include <iomanip>              // { dg-do compile }
+#include <iomanip>
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index facbecb..1f6c1aa 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, ios
 
-#include <ios>                  // { dg-do compile }
+#include <ios>
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index 695b832..4766e35 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, iosfwd
 
-#include <iosfwd>               // { dg-do compile }
+#include <iosfwd> 
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index 790846f..7067709 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, iostream
 
-#include <iostream>             // { dg-do compile }
+#include <iostream>
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index 72eb224..e22550c 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, istream
 
-#include <istream>              // { dg-do compile }
+#include <istream>
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index d365105..93ddc19 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, ostream
 
-#include <ostream>              // { dg-do compile }
+#include <ostream>
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index bdbf0c4..2a76ff9 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, sstream
 
-#include <sstream>              // { dg-do compile }
+#include <sstream>
 #include <debug_assert.h>
 
 
@@ -28,7 +28,3 @@ int main(void)
 {
   return 0;
 }
-
-
-
-
index 50234a6..5eb39cf 100644 (file)
@@ -20,7 +20,7 @@
 
 // 17.4.1.2 Headers, streambuf
 
-#include <streambuf>            // { dg-do compile }
+#include <streambuf>
 #include <debug_assert.h>
 
 
index 2ec4041..eb930f1 100644 (file)
@@ -80,4 +80,4 @@
   #include <cwctype>
 #endif
 
-int main() { }                  // { dg-do compile }
+int main() { return 0; }
index d5c01a8..ad75bca 100644 (file)
@@ -67,4 +67,4 @@
   #include <wctype.h>
 #endif
 
-int main() { }                  // { dg-do compile }
+int main() { return 0; }
index 406bc98..5831887 100644 (file)
@@ -67,4 +67,4 @@
   #include <cwctype>
 #endif
 
-int main() { }                  // { dg-do compile }
+int main() { return 0; }
index 07b1706..2333cc3 100644 (file)
@@ -160,9 +160,5 @@ bool test01(void)
 int main()
 { 
   test01();
+  return 0;
 }
-
-
-
-
-
index 8bafeb4..88e6371 100644 (file)
@@ -194,9 +194,5 @@ bool test01(void)
 int main()
 { 
   test01();
+  return 0;
 }
-
-
-
-
-
index da51000..12af8e4 100644 (file)
@@ -190,9 +190,5 @@ int test01(void)
 int main()
 { 
   test01();
+  return 0;
 }
-
-
-
-
-
index 559598d..261f572 100644 (file)
@@ -41,9 +41,9 @@ bool test01(void)
   csize_type npos = std::string::npos;
   csize_type csz01, csz02;
 
-  const char str_lit01[] = "sailing grand traverse bay
-                           from Elk Rapids to the point reminds me of miles";
-  const std::string str01(str_lit01);
+  // { dg-warning "string literals" "" { xfail *-*-* } 45 }
+  const std::string str01("sailing grand traverse bay
+                           from Elk Rapids to the point reminds me of miles");
   const std::string str02("sailing");
   const std::string str03("grand");
   const std::string str04("traverse");
@@ -124,7 +124,7 @@ bool test01(void)
     getline(istrs02, str10);
     VERIFY( istrs02.fail() );
     VERIFY( istrs02.eof() );
-    VERIFY( str10 == "\t    from Elk Rapids to the point reminds me of miles" );
+    VERIFY( str10 =="\t    from Elk Rapids to the point reminds me of miles" );
   }
   catch(std::exception& fail) {
     VERIFY( false ); // shouldn't throw
@@ -323,10 +323,3 @@ int main()
   test08();
   return 0;
 }
-
-
-
-
-
-
-
index 61704fd..fdc85d8 100644 (file)
@@ -293,12 +293,8 @@ template<class charT, class traits, class Allocator>
   return 0;
 }
 
-int main() {
+int main() 
+{
   test01();
+  return 0;
 }
-
-
-
-
-
-
index 2ad1ab6..2c211b1 100644 (file)
@@ -86,9 +86,5 @@ bool test01(void)
 int main()
 { 
   test01();
+  return 0;
 }
-
-
-
-
-
index cf826dd..2698168 100644 (file)
@@ -121,4 +121,5 @@ int main()
   test01();
   test02();
   test03();
+  return 0;
 }
index 5c64357..ce42eb7 100644 (file)
@@ -76,9 +76,5 @@ bool test01(void)
 int main()
 { 
   test01();
+  return 0;
 }
-
-
-
-
-
index 4930f14..b11da0c 100644 (file)
@@ -594,6 +594,5 @@ main(int argc, char **argv)
    assert (failures == 0);
 #endif
 
-   return failures ? 1 : 0;
+   return 0;
 }
-
index f670d4a..7dbcfbd 100644 (file)
@@ -33,4 +33,5 @@ int main()
     d = (a + 2.0* b );
 
     std::cout << "d[4] = " << d[4] << std::endl;
+    return 0;
 }
index bfbd8ca..a5427fd 100644 (file)
@@ -171,7 +171,3 @@ int main() {
   test03();
   return 0;
 }
-
-
-
-
index 635e171..f0d386c 100644 (file)
@@ -529,21 +529,4 @@ int main()
   return 0;
 }
 
-
-
-
-
 // paul miller was right on with riddim warfare!
-
-
-
-
-
-
-
-
-
-
-
-
-
index 68f83ab..661e075 100644 (file)
@@ -83,9 +83,5 @@ bool test01(void)
 int main()
 { 
   test01();
+  return 0;
 }
-
-
-
-
-
index c57065c..fd88b9c 100644 (file)
@@ -142,6 +142,7 @@ test02()
   typedef std::char_traits<char>       traits_type;
 
   bool test = true;
+  // { dg-warning "string literals" "" { xfail *-*-* } 146 }
   const char str_lit01[] = "                       sun*ra 
                             and his myth science arkestra present
                             angles and demons @ play
@@ -200,6 +201,7 @@ test02()
   VERIFY( is_04.gcount() == 64 );
   VERIFY( state1 != state2 );
   VERIFY( state2 == statefail );
+  // { dg-warning "string literals" "" { xfail *-*-* } 205 }
   VERIFY( !traits_type::compare("                            and his myth science arkestra presen", carray1, 65) );
 
   is_04.clear();
@@ -232,6 +234,7 @@ test03()
   typedef std::char_traits<char>       traits_type;
 
   bool test = true;
+  // { dg-warning "string literals" "" { xfail *-*-* } 238 }
   const char str_lit01[] = "   sun*ra 
                           & his arkestra, featuring john gilmore: 
                          jazz in silhouette: images and forecasts of tomorrow";
@@ -357,6 +360,7 @@ test04()
 int
 test05()
 {
+  // { dg-warning "string literals" "" { xfail *-*-* } 364 }
   const char* charray = "
 a
 aa
@@ -491,12 +495,3 @@ main()
 
   return 0;
 }
-
-
-
-
-
-
-
-
-
index ec019e7..e89cc66 100644 (file)
@@ -121,9 +121,5 @@ bool test02()
 int main()
 { 
   test01();
+  return 0;
 }
-
-
-
-
-
index 30a4499..038c12c 100644 (file)
@@ -347,16 +347,3 @@ int main()
   test05();
   return 0;
 }
-
-
-
-
-
-
-
-
-
-
-
-
-
index 2a8f97e..ed3ed83 100644 (file)
@@ -28,7 +28,6 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-
 #include <vector>
 #include <string>
 #include <sstream>
@@ -49,6 +48,7 @@ test01()
   VERIFY( len == 0 );
 
   // Full string sanity check.
+  // { dg-warning "string literals" "" { xfail *-*-* } 52 }
   std::string str02("these golden days, i spend waiting for you:\n 
               Betty Carter on Verve with I'm Yours and You're Mine.");
   __i_start = str02.begin();
@@ -159,14 +159,3 @@ main()
   
   return 0;
 }
-
-
-
-
-
-
-
-
-
-
-
index 3ae770e..dbe227b 100644 (file)
@@ -15,7 +15,7 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 
 # Please email any bugs, comments, and/or additions to this file to:
-# bug-gcc@prep.ai.mit.edu
+# libstdc++@gcc.gnu.org
 
 load_lib "standard.exp"