]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/tr1/8_c_compatibility/cinttypes/functions.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / tr1 / 8_c_compatibility / cinttypes / functions.cc
index 7afe3b82b3a0c5d7dfb8a1ca8ab7f3c3446fe4b1..e9eec57e8963a537a3d77c86431493c4979328a6 100644 (file)
@@ -1,8 +1,9 @@
 // { dg-do compile }
+// { dg-require-cstdint "" }
 
 // 2006-01-30  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006-2024 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
@@ -33,7 +34,7 @@ void test01()
 #if defined(_GLIBCXX_USE_WCHAR_T) && _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1
   const wchar_t* ws = 0;
   wchar_t** wendptr = 0;
-#endif  
+#endif
 
   std::tr1::intmax_t  ret;
   std::tr1::uintmax_t uret;
@@ -53,5 +54,9 @@ void test01()
   uret = std::tr1::wcstoumax(ws, wendptr, base);
 #endif
 
+  ret = ret; // Suppress unused warnings.
+  dret = dret;
+  uret = uret;
+
 #endif
 }