fix #2746 (false positive: syntax error (typedef in __attribute__ )))

This commit is contained in:
Robert Reif 2011-04-23 21:04:02 -04:00
parent 55898c0dfc
commit 670741271e
2 changed files with 2 additions and 0 deletions

View File

@ -9265,6 +9265,7 @@ void Tokenizer::simplifyAttribute()
Token::eraseTokens(tok, tok->next()->link()->next());
tok->deleteThis();
tok = tok->previous();
}
}
}

View File

@ -4885,6 +4885,7 @@ private:
{
ASSERT_EQUALS("short array [ 3 ] ;", tokenizeAndStringify("short array[3] __attribute__ ((aligned));"));
ASSERT_EQUALS("int x [ 2 ] ;", tokenizeAndStringify("int x[2] __attribute__ ((packed));"));
ASSERT_EQUALS("int vecint ;", tokenizeAndStringify("int __attribute__((mode(SI))) __attribute__((vector_size (16))) vecint;"));
}
void cpp0xtemplate1()