This assert would trigger on:
#d , = }
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226446
91177308-0d34-0410-b5e6-
96231b3b80d8
void ContinuationIndenter::moveStatePastFakeRParens(LineState &State) {
for (unsigned i = 0, e = State.NextToken->FakeRParens; i != e; ++i) {
unsigned VariablePos = State.Stack.back().VariablePos;
- assert(State.Stack.size() > 1);
if (State.Stack.size() == 1) {
// Do not pop the last element.
break;
verifyFormat("#pragma omp threadprivate( \\\n"
" y)), // expected-warning",
getLLVMStyleWithColumns(28));
+ verifyFormat("#d, = };");
}
TEST_F(FormatTest, MacrosWithoutTrailingSemicolon) {