We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 903333a commit 2127a08Copy full SHA for 2127a08
1 file changed
test/testtokenize.cpp
@@ -8421,7 +8421,8 @@ class TestTokenizer : public TestFixture {
8421
8422
void ccast() {
8423
const char code[] = "a = (int)x;\n" // #13579
8424
- "int (*p)[10];\n";
+ "int (*p)[10];\n"
8425
+ "b = (void (S::*)(int) const)&y;";
8426
8427
SimpleTokenizer tokenizer(settingsDefault, *this);
8428
ASSERT(tokenizer.tokenize(code));
@@ -8430,6 +8431,8 @@ class TestTokenizer : public TestFixture {
8430
8431
ASSERT(par->isCast());
8432
par = Token::findsimplematch(par->next(), "(");
8433
ASSERT(!par->isCast());
8434
+ par = Token::findsimplematch(par->next(), "(");
8435
+ ASSERT(par->isCast());
8436
}
8437
8438
#define checkHdrs(...) checkHdrs_(__FILE__, __LINE__, __VA_ARGS__)
0 commit comments