mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
test for bug 69454 - C/C++ Indexer Problem: Macro usage error for macro: ...
This commit is contained in:
parent
1387c5a69b
commit
82c57e63c9
1 changed files with 18 additions and 0 deletions
|
@ -2146,5 +2146,23 @@ public class CompleteParseASTTest extends CompleteParseBaseTest
|
|||
writer.write( "}" );
|
||||
parse( writer.toString() );
|
||||
}
|
||||
|
||||
public void testBug69454() throws Exception
|
||||
{
|
||||
Writer writer = new StringWriter();
|
||||
writer.write( "#define CATCH_ALL_EXCEPTIONS() \\\n" );
|
||||
writer.write( " catch( Exception &ex ) { handleException( ex ); } \\\n" );
|
||||
writer.write( " catch( ... ) { handleException(); } \n" );
|
||||
writer.write( "class Exception; \n" );
|
||||
writer.write( "void handleException( Exception & ex ) {} \n" );
|
||||
writer.write( "void handleException() {} \n" );
|
||||
writer.write( "void f() { \n" );
|
||||
writer.write( " try { int i; } \n" );
|
||||
writer.write( " CATCH_ALL_EXCEPTIONS(); \n" );
|
||||
writer.write( "} \n" );
|
||||
|
||||
parse( writer.toString() );
|
||||
assertFalse( callback.getProblems().hasNext() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue