1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Added JUnit to validate bug 73428 - [Parser] Indexer gives syntax error on anonymous namespace

This commit is contained in:
John Camelon 2004-09-13 15:21:29 +00:00
parent 15f0beb4df
commit 0c65449761

View file

@ -2054,4 +2054,16 @@ public class CompleteParseASTTest extends CompleteParseBaseTest
writer.write( "}\n" ); //$NON-NLS-1$
parse( writer.toString() , false );
}
public void testBug73428() throws Exception
{
parse( "namespace { }");//$NON-NLS-1$
assertTrue( callback.problems.isEmpty() );
parse( "namespace { };");//$NON-NLS-1$
assertTrue( callback.problems.isEmpty() );
parse( "namespace { int abc; };");//$NON-NLS-1$
assertTrue( callback.problems.isEmpty() );
parse( "namespace { int abc; }");//$NON-NLS-1$
assertTrue( callback.problems.isEmpty() );
}
}