]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/optional/constexpr/nullopt.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / optional / constexpr / nullopt.cc
index dd2c7319d910829bb4a6a61bd1dd42ecf603fdfd..617e4601ecc79ffbb85aa65b947f1f97f0e5cfdb 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++17" }
-// { dg-do compile }
+// { dg-do compile { target c++17 }  }
 
-// Copyright (C) 2013-2017 Free Software Foundation, Inc.
+// Copyright (C) 2013-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
@@ -26,7 +26,7 @@ int main()
   // [20.5.6] Disengaged state indicator
   static_assert( std::is_same<decltype(std::nullopt), const std::nullopt_t>(), "" );
   static_assert( std::is_empty<std::nullopt_t>(), "" );
-  static_assert( std::is_literal_type<std::nullopt_t>(), "" );
+  static_assert( __is_literal_type(std::nullopt_t), "" );
   static_assert( !std::is_default_constructible<std::nullopt_t>(), "" );
 
   {