public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-5173] libstdc++: Add missing header to some tests Date: Thu, 19 Nov 2020 16:17:35 +0000 (GMT) [thread overview] Message-ID: <20201119161735.ED6B5385E830@sourceware.org> (raw) 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>
reply other threads:[~2020-11-19 16:17 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201119161735.ED6B5385E830@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).