diff options
author | Marek Polacek <polacek@redhat.com> | 2024-03-19 17:15:38 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2024-03-19 17:16:59 -0400 |
commit | 7a6261332de58fd47283d694d8cd61ea7cdb324c (patch) | |
tree | 1c4b02029c2658a342cc18cc6effa289e7d8a8a6 /gcc | |
parent | 9c91f8a88b2db50c8faf70786d3cef27b39ac9fc (diff) | |
download | gcc-7a6261332de58fd47283d694d8cd61ea7cdb324c.zip gcc-7a6261332de58fd47283d694d8cd61ea7cdb324c.tar.gz gcc-7a6261332de58fd47283d694d8cd61ea7cdb324c.tar.bz2 |
testsuite: fix target for linkage-1.C
This test fails in C++11 due to:
linkage-1.C:3:8: error: 'f' function uses 'auto' type specifier without trailing return type
3 | inline auto f() {
| ^~~~
linkage-1.C:3:8: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
Compile it in C++14 thus.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/linkage-1.C: Use target c++14.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp2a/linkage-1.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp2a/linkage-1.C b/gcc/testsuite/g++.dg/cpp2a/linkage-1.C index 888ed6f..2b83ffe 100644 --- a/gcc/testsuite/g++.dg/cpp2a/linkage-1.C +++ b/gcc/testsuite/g++.dg/cpp2a/linkage-1.C @@ -1,4 +1,4 @@ -// { dg-do compile { target c++11 } } +// { dg-do compile { target c++14 } } inline auto f() { struct A {}; |