[clang][NFC] Cleanup some coroutine tests
authorNathan Sidwell <nathan@acm.org>
Fri, 13 May 2022 10:52:49 +0000 (03:52 -0700)
committerNathan Sidwell <nathan@acm.org>
Mon, 16 May 2022 12:15:12 +0000 (05:15 -0700)
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
clang/test/CoverageMapping/coroutine.cpp

index 7bc1bcd..ae139af 100644 (file)
@@ -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;
   };
 };
 
index c9de301..da38acc 100644 (file)
@@ -30,6 +30,7 @@ struct std::coroutine_traits<int, int> {
     int get_return_object();
     suspend_always initial_suspend();
     suspend_always final_suspend() noexcept;
+    void unhandled_exception() noexcept;
     void return_value(int);
   };
 };