diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-07-29 14:17:55 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-07-29 14:17:55 +0200 |
commit | 7d014f7b224cb41e9570284d125f4c605cb0ab0a (patch) | |
tree | 6fcac305cfe8f61666b104f2e92fa4a4c73269c2 | |
parent | 0829ab79d37be6c59072af0c4f54043f7e9d23ea (diff) | |
download | gcc-7d014f7b224cb41e9570284d125f4c605cb0ab0a.zip gcc-7d014f7b224cb41e9570284d125f4c605cb0ab0a.tar.gz gcc-7d014f7b224cb41e9570284d125f4c605cb0ab0a.tar.bz2 |
testsuite: Fix up two tests for recent libstdc++ header changes [PR101647]
After recent libstdc++ header changes <functional> no longer includes
(parts of?) <array> and doesn't have to and <memory> no longer includes
(parts of?) <initializer_list>.
This patch fixes:
testsuite/g++.dg/pr71389.C:10:39: error: aggregate 'std::array<std::array<int, 16>, 16> v13' has incomplete type and cannot be defined
as well as
testsuite/g++.dg/cpp0x/initlist48.C:11:6: error: 'initializer_list' in namespace 'std' does not name a template type; did you mean 'uninitialized_fill'?
2021-07-29 Jakub Jelinek <jakub@redhat.com>
PR testsuite/101647
* g++.dg/pr71389.C: Include <array> instead of <functional>.
* g++.dg/cpp0x/initlist48.C: Include also <initializer_list>.
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/initlist48.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/pr71389.C | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist48.C b/gcc/testsuite/g++.dg/cpp0x/initlist48.C index 7a79c67..cd9027e 100644 --- a/gcc/testsuite/g++.dg/cpp0x/initlist48.C +++ b/gcc/testsuite/g++.dg/cpp0x/initlist48.C @@ -2,6 +2,7 @@ // { dg-do compile { target c++11 } } #include <memory> +#include <initializer_list> struct Foo{ int i; diff --git a/gcc/testsuite/g++.dg/pr71389.C b/gcc/testsuite/g++.dg/pr71389.C index 023abe1..8c376e9 100644 --- a/gcc/testsuite/g++.dg/pr71389.C +++ b/gcc/testsuite/g++.dg/pr71389.C @@ -1,7 +1,7 @@ // { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-options "-std=c++11 -O3 -march=ivybridge" } -#include <functional> +#include <array> extern int le_s6, le_s9, le_s11; long foo_v14[16][16]; |