]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add missing C++ includes to tests [PR101646]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 Jul 2021 20:29:10 +0000 (21:29 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 27 Jul 2021 20:36:01 +0000 (21:36 +0100)
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:

gcc/testsuite/g++.dg/coroutines/pr99047.C
gcc/testsuite/g++.dg/pr71655.C

index 124633a08e63ffed10ab82c04e86b025b3b2ceea..05ce08567b2a65dc0858bc4e4694001b4ffedf90 100644 (file)
@@ -1,4 +1,5 @@
 #include <optional>
+#include <utility>
 #include <coroutine>
 
 template <typename T>
index 8ed33711c36501d668aaebed522fd602f4258c96..45943060bc53c4ce36692faebb0c9dacb8014abe 100644 (file)
@@ -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;