]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libstdc++-v3/testsuite/backward/strstream_members.cc
Imported gcc-4.4.3
[msp430-gcc.git] / libstdc++-v3 / testsuite / backward / strstream_members.cc
index 107041041f7be6f9ab7642397ba7d90506b54535..f5d24a4146cbbbc5f7156880d1689f96ed330475 100644 (file)
@@ -1,9 +1,10 @@
-// Copyright (C) 2002 Free Software Foundation, Inc.
+// { dg-options "-Wno-deprecated" }
+// Copyright (C) 2002, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
 // terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
+// Free Software Foundation; either version 3, or (at your option)
 // any later version.
 
 // This library is distributed in the hope that it will be useful,
 // GNU General Public License for more details.
 
 // You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING.  If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
 
 // backward strstream members
 
 #include <strstream>
 #include <testsuite_hooks.h>
 
-// { dg-options "-Wno-deprecated" }
-
-int test01()
+void test01()
 {
    std::strstream s;
    for (unsigned i=0 ; i!= 1000 ; ++i)
       s << i << std::endl;
    s << std::ends;
-   return 0;
 }
 
 
-int test02()
+void test02()
 {
   std::ostrstream buf;
   buf << std::ends;