From: Jakub Jelinek Date: Thu, 29 Jul 2021 12:17:55 +0000 (+0200) Subject: testsuite: Fix up two tests for recent libstdc++ header changes [PR101647] X-Git-Tag: basepoints/gcc-13~5719 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d014f7b224cb41e9570284d125f4c605cb0ab0a;p=thirdparty%2Fgcc.git testsuite: Fix up two tests for recent libstdc++ header changes [PR101647] After recent libstdc++ header changes no longer includes (parts of?) and doesn't have to and no longer includes (parts of?) . This patch fixes: testsuite/g++.dg/pr71389.C:10:39: error: aggregate 'std::array, 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 PR testsuite/101647 * g++.dg/pr71389.C: Include instead of . * g++.dg/cpp0x/initlist48.C: Include also . --- diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist48.C b/gcc/testsuite/g++.dg/cpp0x/initlist48.C index 7a79c6776636..cd9027e3aad3 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 +#include struct Foo{ int i; diff --git a/gcc/testsuite/g++.dg/pr71389.C b/gcc/testsuite/g++.dg/pr71389.C index 023abe1755cb..8c376e958c0e 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 +#include extern int le_s6, le_s9, le_s11; long foo_v14[16][16];