[gcc r11-5173] libstdc++: Add missing header to some tests

Jonathan Wakely redi@gcc.gnu.org
Thu Nov 19 16:17:35 GMT 2020


https://gcc.gnu.org/g:5e6a43158d2e5b26616716c50badedd3400c6bea

commit r11-5173-g5e6a43158d2e5b26616716c50badedd3400c6bea
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Nov 19 16:17:33 2020 +0000

    libstdc++: Add missing header to some tests
    
    These tests use std::this_thread::sleep_for without including <thread>.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/30_threads/async/async.cc: Include <thread>.
            * testsuite/30_threads/future/members/93456.cc: Likewise.

Diff:
---
 libstdc++-v3/testsuite/30_threads/async/async.cc          | 1 +
 libstdc++-v3/testsuite/30_threads/future/members/93456.cc | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libstdc++-v3/testsuite/30_threads/async/async.cc b/libstdc++-v3/testsuite/30_threads/async/async.cc
index 1c779bfbcad..b06c2553c95 100644
--- a/libstdc++-v3/testsuite/30_threads/async/async.cc
+++ b/libstdc++-v3/testsuite/30_threads/async/async.cc
@@ -22,6 +22,7 @@
 
 
 #include <future>
+#include <thread>
 #include <testsuite_hooks.h>
 
 using namespace std;
diff --git a/libstdc++-v3/testsuite/30_threads/future/members/93456.cc b/libstdc++-v3/testsuite/30_threads/future/members/93456.cc
index 8d6a5148ce3..9d1cbcef001 100644
--- a/libstdc++-v3/testsuite/30_threads/future/members/93456.cc
+++ b/libstdc++-v3/testsuite/30_threads/future/members/93456.cc
@@ -22,6 +22,7 @@
 
 
 #include <future>
+#include <thread>
 #include <chrono>
 #include <climits>
 #include <testsuite_hooks.h>


More information about the Libstdc++-cvs mailing list