From 80bebbc7cb77979ef9d229450b7ea84e3e9c6a5a Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 13 May 2022 03:52:49 -0700 Subject: [PATCH] [clang][NFC] Cleanup some coroutine tests I noticed these two tests emit a warning about a missing unhandled_exception. That's irrelevant to what is being tested, but is unnecessary noise. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D125535 --- clang/test/CodeGenCoroutines/coro-ret-void.cpp | 2 ++ clang/test/CoverageMapping/coroutine.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/clang/test/CodeGenCoroutines/coro-ret-void.cpp b/clang/test/CodeGenCoroutines/coro-ret-void.cpp index 7bc1bcd..ae139af 100644 --- a/clang/test/CodeGenCoroutines/coro-ret-void.cpp +++ b/clang/test/CodeGenCoroutines/coro-ret-void.cpp @@ -8,6 +8,7 @@ struct coro1 { std::suspend_never initial_suspend(); std::suspend_never final_suspend() noexcept; void return_void(); + void unhandled_exception() noexcept; }; }; @@ -39,6 +40,7 @@ struct coro2 { std::suspend_never initial_suspend(); std::suspend_never final_suspend() noexcept; void return_value(int); + void unhandled_exception() noexcept; }; }; diff --git a/clang/test/CoverageMapping/coroutine.cpp b/clang/test/CoverageMapping/coroutine.cpp index c9de301..da38acc 100644 --- a/clang/test/CoverageMapping/coroutine.cpp +++ b/clang/test/CoverageMapping/coroutine.cpp @@ -30,6 +30,7 @@ struct std::coroutine_traits { int get_return_object(); suspend_always initial_suspend(); suspend_always final_suspend() noexcept; + void unhandled_exception() noexcept; void return_value(int); }; }; -- 2.7.4