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:
parent
15f0beb4df
commit
0c65449761
1 changed files with 12 additions and 0 deletions
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue