Add comment explaining why -std=c++14 is needed.

* testsuite/26_numerics/complex/literals/types.cc: Add comment.

From-SVN: r239543
This commit is contained in:
Jonathan Wakely 2016-08-17 17:09:15 +01:00 committed by Jonathan Wakely
parent 038000bd9d
commit e30c6e0c14
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2016-08-17 Jonathan Wakely <jwakely@redhat.com>
* testsuite/26_numerics/complex/literals/types.cc: Add comment.
* testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc:
Remove duplicate dg-options directive.

View File

@ -1,4 +1,6 @@
// { dg-options "-std=c++1y" }
// 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 }
// Copyright (C) 2013-2016 Free Software Foundation, Inc.