Skip to content

Commit

Permalink
Update test for the fact that we disable coroutines wiht CHERI for now
Browse files Browse the repository at this point in the history
  • Loading branch information
resistor committed Nov 7, 2024
1 parent a1e4a5f commit 22d3f0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clang-tools-extra/clangd/unittests/SourceCodeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,9 @@ TEST(SourceCodeTests, isHeaderFile) {
TEST(SourceCodeTests, isKeywords) {
LangOptions LangOpts;
LangOpts.CPlusPlus20 = true;
// XXX CHERI FIXME: We require coroutines to be enabled separately from C++20
// because we don't support them yet.
LangOpts.Coroutines = true;
EXPECT_TRUE(isKeyword("int", LangOpts));
EXPECT_TRUE(isKeyword("return", LangOpts));
EXPECT_TRUE(isKeyword("co_await", LangOpts));
Expand Down

0 comments on commit 22d3f0d

Please sign in to comment.