]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/is_floating_point/value.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / is_floating_point / value.cc
index 770780ec214b67c00dd0adf8d31bef1eadc3493d..5dbdbf84d9908b8b9db11a46a0f586c28c3d9671 100644 (file)
@@ -1,7 +1,7 @@
-// { dg-options "-std=gnu++11" }
-// { dg-do compile }
+// { dg-options "-Wno-pedantic" }
+// { dg-do compile { target c++11 } }
 //
-// Copyright (C) 2011-2014 Free Software Foundation, Inc.
+// Copyright (C) 2011-2021 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
@@ -47,6 +47,7 @@ void test01()
   static_assert(test_category<is_floating_point, double>(true), "");
   static_assert(test_category<is_floating_point, long double>(true), "");
 
+#ifndef __STRICT_ANSI__
   // GNU Extensions.
 #ifdef _GLIBCXX_USE_FLOAT128
   static_assert(test_category<is_floating_point, __float128>(true), "");
@@ -56,6 +57,7 @@ void test01()
   static_assert(test_category<is_floating_point, __int128>(false), "");
   static_assert(test_category<is_floating_point,
                unsigned __int128>(false), "");
+#endif
 #endif
 
   // Sanity check.