]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/num_get/get/char/16.cc
Update copyright years in libstdc++-v3/
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / num_get / get / char / 16.cc
index 03512714da897b5f6100ee265810b8fd69cb9c75..98b760957800d7e322f0f34583de437799410508 100644 (file)
@@ -1,11 +1,11 @@
 // 2005-04-26  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2005 Free Software Foundation
+// Copyright (C) 2005-2014 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,
@@ -14,9 +14,8 @@
 // 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/>.
 
 // 22.2.2.1.1  num_get members
 
@@ -64,7 +63,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, us0);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( us0 == 0 );
+  VERIFY( us0 == numeric_limits<unsigned short>::max() );
 
   ui0 = 0U;
   ss.clear();
@@ -82,7 +81,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, ui0);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( ui0 == 0U );
+  VERIFY( ui0 == numeric_limits<unsigned int>::max() );
 
   ul0 = 0UL;
   ss.clear();
@@ -100,7 +99,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, ul0);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( ul0 == 0UL );
+  VERIFY( ul0 == numeric_limits<unsigned long>::max() );
 
   l01 = 0L;
   ss.clear();
@@ -118,7 +117,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, l01);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( l01 == 0L );
+  VERIFY( l01 == numeric_limits<long>::max() );
 
   l02 = 0L;
   ss.clear();
@@ -136,7 +135,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, l02);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( l02 == 0L );
+  VERIFY( l02 == numeric_limits<long>::min() );
 
 #ifdef _GLIBCXX_USE_LONG_LONG
   ull0 = 0ULL;
@@ -155,7 +154,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, ull0);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( ull0 == 0ULL );
+  VERIFY( ull0 == numeric_limits<unsigned long long>::max() );
 
   ll01 = 0LL;
   ss.clear();
@@ -173,7 +172,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, ll01);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( ll01 == 0LL );
+  VERIFY( ll01 == numeric_limits<long long>::max() );
 
   ll02 = 0LL;
   ss.clear();
@@ -191,7 +190,7 @@ void test01()
   err = ios_base::goodbit;
   end = ng.get(ss.rdbuf(), 0, ss, err, ll02);
   VERIFY( err == (ios_base::failbit | ios_base::eofbit) );
-  VERIFY( ll02 == 0LL );
+  VERIFY( ll02 == numeric_limits<long long>::min() );
 #endif
 }