diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index 280486d1ef5..5a632c1ee59 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -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$ + } + } diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java index a6177758150..99e2454f652 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java @@ -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$ + } } \ No newline at end of file