From: Jonathan Wakely Date: Mon, 4 Sep 2023 14:13:35 +0000 (+0100) Subject: libstdc++: Remove unnecessary dg-options and outdated comment X-Git-Tag: basepoints/gcc-15~6482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=270e702edae3e508ee91ff041d97400803eef009;p=thirdparty%2Fgcc.git libstdc++: Remove unnecessary dg-options and outdated comment It's no longer true that 1.0if has type float _Complex when GNU extensions are enabled, so remove the hardcoded -std option. libstdc++-v3/ChangeLog: * testsuite/26_numerics/complex/literals/types.cc: Remove dg-options and add target selector instead. --- diff --git a/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc b/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc index 5cc46d741ef7..69c6781d7399 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc @@ -1,7 +1,4 @@ -// Use -std=c++14 explicitly, because -std=gnu++14 enables GNU extension for -// complex literals, so 1.0if is __complex__ float not std::complex. -// { dg-options "-std=c++14" } -// { dg-do compile } +// { dg-do compile { target c++14 } } // Copyright (C) 2013-2023 Free Software Foundation, Inc. //