1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed Bug 80171 CDT Parser doesn't understand the code when add a new static variable but with no "type" defined.

Committed test case.
This commit is contained in:
John Camelon 2005-07-12 19:36:27 +00:00
parent c4d845f895
commit 87001dd770
2 changed files with 9 additions and 0 deletions

View file

@ -4971,4 +4971,9 @@ public class AST2CPPTests extends AST2BaseTest {
assertSame( e, col.getName(5).resolveBinding() );
assertSame( blah, col.getName(6).resolveBinding() );
}
public void testBug80171() throws Exception {
parseAndCheckBindings( "static var;"); //$NON-NLS-1$
}
}

View file

@ -3274,4 +3274,8 @@ public class AST2Tests extends AST2BaseTest {
buffer.append("}\n"); //$NON-NLS-1$
parseAndCheckBindings( buffer.toString() );
}
public void testBug80171() throws Exception {
parseAndCheckBindings( "static var;"); //$NON-NLS-1$
}
}