Skip to content

Commit 2127a08

Browse files
Update testtokenize.cpp
1 parent 903333a commit 2127a08

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/testtokenize.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8421,7 +8421,8 @@ class TestTokenizer : public TestFixture {
84218421

84228422
void ccast() {
84238423
const char code[] = "a = (int)x;\n" // #13579
8424-
"int (*p)[10];\n";
8424+
"int (*p)[10];\n"
8425+
"b = (void (S::*)(int) const)&y;";
84258426

84268427
SimpleTokenizer tokenizer(settingsDefault, *this);
84278428
ASSERT(tokenizer.tokenize(code));
@@ -8430,6 +8431,8 @@ class TestTokenizer : public TestFixture {
84308431
ASSERT(par->isCast());
84318432
par = Token::findsimplematch(par->next(), "(");
84328433
ASSERT(!par->isCast());
8434+
par = Token::findsimplematch(par->next(), "(");
8435+
ASSERT(par->isCast());
84338436
}
84348437

84358438
#define checkHdrs(...) checkHdrs_(__FILE__, __LINE__, __VA_ARGS__)

0 commit comments

Comments
 (0)