diff options
Diffstat (limited to 'test/std/thread/futures/futures.async/async.fail.cpp')
-rw-r--r-- | test/std/thread/futures/futures.async/async.fail.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/std/thread/futures/futures.async/async.fail.cpp b/test/std/thread/futures/futures.async/async.fail.cpp index 594c67f52699..e20f1a0a5091 100644 --- a/test/std/thread/futures/futures.async/async.fail.cpp +++ b/test/std/thread/futures/futures.async/async.fail.cpp @@ -33,6 +33,6 @@ int foo (int x) { return x; } int main () { - std::async( foo, 3); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}} - std::async(std::launch::async, foo, 3); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}} -}
\ No newline at end of file + std::async( foo, 3); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}} + std::async(std::launch::async, foo, 3); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}} +} |