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:
parent
c4d845f895
commit
87001dd770
2 changed files with 9 additions and 0 deletions
|
@ -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$
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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$
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue