Skip to content

Commit

Permalink
Fixed handling coroutine test cases on older LLVM version (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkryza committed Feb 3, 2025
1 parent 98721c5 commit 47382ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ set(TEST_CASES_REQUIRING_CXX20
t00075
t00090
t20064
t20070)
t20070
t20071)
set(TEST_CASES_REQUIRING_CXX20_MODULES
t00070
t00071
Expand Down
6 changes: 6 additions & 0 deletions tests/t20071/test_case.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ TEST_CASE("t20071")
"resuming_on_new_thread(std::thread &)", Coroutine{}}, //
{"t20071.cc", "t20071.cc",
"switch_to_new_thread(std::thread &)"}, //
#if LLVM_VERSION_MAJOR == 14 || LLVM_VERSION_MAJOR == 15
{"t20071.cc", "t20071.cc",
"struct clanguml::t20071::awaitable_on_thread",
Response{}}, //
#else
{"t20071.cc", "t20071.cc", "awaitable_on_thread",
Response{}}, //
#endif
{"t20071.cc", "awaitable_on_thread", "await_resume()",
CoAwait{}} //
}));
Expand Down

0 comments on commit 47382ca

Please sign in to comment.