X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=libstdc%2B%2B-v3%2Ftestsuite%2F20_util%2Foptional%2Fconstexpr%2Fnullopt.cc;h=617e4601ecc79ffbb85aa65b947f1f97f0e5cfdb;hb=99dee82307f1e163e150c9c810452979994047ce;hp=dd2c7319d910829bb4a6a61bd1dd42ecf603fdfd;hpb=cbe34bb5edd97015e38c483516492f171bf9f95d;p=thirdparty%2Fgcc.git diff --git a/libstdc++-v3/testsuite/20_util/optional/constexpr/nullopt.cc b/libstdc++-v3/testsuite/20_util/optional/constexpr/nullopt.cc index dd2c7319d910..617e4601ecc7 100644 --- a/libstdc++-v3/testsuite/20_util/optional/constexpr/nullopt.cc +++ b/libstdc++-v3/testsuite/20_util/optional/constexpr/nullopt.cc @@ -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(), "" ); static_assert( std::is_empty(), "" ); - static_assert( std::is_literal_type(), "" ); + static_assert( __is_literal_type(std::nullopt_t), "" ); static_assert( !std::is_default_constructible(), "" ); {