diff mbox series

[committed,3/2] testsuite: Add missing C++ includes to tests [PR101646]

Message ID YQBuyhoIss+6imWk@redhat.com
State New
Headers show
Series [committed,1/2] libstdc++: Reduce header dependencies on <array> and <utility> | expand

Commit Message

Jonathan Wakely July 27, 2021, 8:38 p.m. UTC
These tests stopped working after some libstdc++ refactoring, because
they aren't including what they use.

I committed a blank ChangeLog (I did 'git push' when I meant to push
to the compile farm, oops) so I'll fix that tomorrow.

Tested powerpc64le-linux. Committed to trunk.
diff mbox series

Patch

commit b7195fb01fe62a313ae5f7faede698101bdb3025
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Jul 27 21:29:10 2021

    testsuite: Add missing C++ includes to tests [PR101646]
    
    These tests stopped working after some libstdc++ refactoring, because
    they aren't including what they use.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/101646
            * g++.dg/coroutines/pr99047.C:
            * g++.dg/pr71655.C:

diff --git a/gcc/testsuite/g++.dg/coroutines/pr99047.C b/gcc/testsuite/g++.dg/coroutines/pr99047.C
index 124633a08e6..05ce08567b2 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr99047.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr99047.C
@@ -1,4 +1,5 @@ 
 #include <optional>
+#include <utility>
 #include <coroutine>
 
 template <typename T>
diff --git a/gcc/testsuite/g++.dg/pr71655.C b/gcc/testsuite/g++.dg/pr71655.C
index 8ed33711c36..45943060bc5 100644
--- a/gcc/testsuite/g++.dg/pr71655.C
+++ b/gcc/testsuite/g++.dg/pr71655.C
@@ -5,6 +5,7 @@ 
 
 #include <functional>
 #include <valarray>
+#include <array>
 extern int var_16, le_s5, le_s6, le_s9;
 std::array<std::array<std::array<long, 8>, 4>, 24> v4;
 extern std::array<std::array<int, 48>, 18> v15;