Skip to content

Commit 4041204

Browse files
Update testtokenize.cpp
1 parent b598e7a commit 4041204

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/testtokenize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8329,8 +8329,8 @@ class TestTokenizer : public TestFixture {
83298329
void cppKeywordInCSource() {
83308330
ASSERT_NO_THROW(tokenizeAndStringify("int throw() {}", dinit(TokenizeOptions, $.cpp = false)));
83318331

8332-
const char* code = "void requires(const char*);\n" // #14613
8333-
"void f() { requires(\"abc\"); }\n";
8332+
const char code[] = "void requires(const char*);\n" // #14613
8333+
"void f() { requires(\"abc\"); }\n";
83348334
ASSERT_NO_THROW(tokenizeAndStringify(code, dinit(TokenizeOptions, $.cpp = false)));
83358335
ASSERT_NO_THROW(tokenizeAndStringify(code, dinit(TokenizeOptions, $.cpp = true, $.cppstd = Standards::CPP17)));
83368336
ASSERT_THROW_INTERNAL(tokenizeAndStringify(code, dinit(TokenizeOptions, $.cpp = true, $.cppstd = Standards::CPP20)), AST);

0 commit comments

Comments
 (0)