]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/26_numerics/headers/cstdlib/13943.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 26_numerics / headers / cstdlib / 13943.cc
index 1dfb158e5a058a8020f7133e3ff9e7f46ccd2e51..617fab10d9aa6b277e3fc4b2e14c8b033e28ad7d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005-2013 Free Software Foundation, Inc.
+// Copyright (C) 2005-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
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
 
 #include <cstdlib>
 #include <testsuite_hooks.h>
 
-#if _GLIBCXX_USE_C99
+#if _GLIBCXX_USE_C99_STDLIB
 // libstdc++/13943
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   VERIFY( llabs(-3) == 3 );
   
@@ -36,7 +37,7 @@ void test01()
 
 int main()
 {
-#if _GLIBCXX_USE_C99
+#if _GLIBCXX_USE_C99_STDLIB
   test01();
 #endif
   return 0;