]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Remove unnecessary dg-options and outdated comment
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 14:13:35 +0000 (15:13 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 15:24:35 +0000 (16:24 +0100)
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.

libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc

index 5cc46d741ef70a6a6a79e7f4ffaa33311c7d35b2..69c6781d739969b5cbbdc365281495c4716a0da7 100644 (file)
@@ -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<float>.
-// { dg-options "-std=c++14" }
-// { dg-do compile }
+// { dg-do compile { target c++14 } }
 
 // Copyright (C) 2013-2023 Free Software Foundation, Inc.
 //
This page took 0.064397 seconds and 5 git commands to generate.