| 8569 | } |
| 8570 | |
| 8571 | void newPlacementArgsCppInit() { // #13775 |
| 8572 | const char code[] = "::new(nullptr) int {};"; |
| 8573 | SimpleTokenizer tokenizer(settings1, *this); |
| 8574 | tokenizer.tokenize(code); |
| 8575 | const Token *inttok = Token::findsimplematch(tokenizer.tokens(), "int"); |
| 8576 | ASSERT(inttok); |
| 8577 | const Token *brace = inttok->next(); |
| 8578 | ASSERT(brace); |
| 8579 | ASSERT_EQUALS(brace->astOperand1(), inttok); |
| 8580 | ASSERT_EQUALS(brace->astOperand2(), static_cast<const Token*>(nullptr)); |
| 8581 | } |
| 8582 | |
| 8583 | void cpp20_default_bitfield_initializer() { |
| 8584 | const Settings s1 = settingsBuilder().cpp(Standards::CPP20).build(); |
nothing calls this directly
no test coverage detected