mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Bug 400204 - Unexpected syntax error in C struct declaration
Change-Id: Idc8450517362e6f6d9f00c9dfc13034d6de456a2 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com> Reviewed-on: https://git.eclipse.org/r/15838 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
7fc4c9b937
commit
404b6d7283
2 changed files with 9 additions and 1 deletions
|
@ -432,4 +432,12 @@ public class GCCCompleteParseExtensionsTest extends AST2TestBase {
|
|||
parseGCC(code);
|
||||
parseGPP(code);
|
||||
}
|
||||
|
||||
// struct waldo {
|
||||
// } __attribute__((__aligned__((1))));
|
||||
public void test__attribute__aligned_bug400204() throws Exception {
|
||||
String code= getAboveComment();
|
||||
parseGCC(code);
|
||||
parseGPP(code);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2413,7 +2413,7 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
|||
while ((t = LA(1)).getType() != endType) {
|
||||
consume();
|
||||
IASTToken token;
|
||||
switch (LT(1)) {
|
||||
switch (t.getType()) {
|
||||
case IToken.tLPAREN:
|
||||
token = balancedTokenSeq(t.getOffset(), IToken.tRPAREN);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue