mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
Submitted tests to validate fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=61972
This commit is contained in:
parent
f8ede5731b
commit
157f44eef3
3 changed files with 17 additions and 0 deletions
|
@ -1910,4 +1910,8 @@ public class CompleteParseASTTest extends CompleteParseBaseTest
|
|||
parse( writer.toString() );
|
||||
assertEquals( callback.getReferences().size(), 2 );
|
||||
}
|
||||
public void testBug61972() throws Exception
|
||||
{
|
||||
parse( "#define DEF1(A1) A1\n#define DEF2 DEF1(DEF2)\nDEF2;", false ); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2244,4 +2244,9 @@ public class QuickParseASTTests extends BaseASTTest
|
|||
assertFalse( iter.hasNext() );
|
||||
}
|
||||
}
|
||||
|
||||
public void testBug61972() throws Exception
|
||||
{
|
||||
parse( "#define DEF1(A1) A1\n#define DEF2 DEF1(DEF2)\nDEF2;", true, false ); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -1623,4 +1623,12 @@ public class ScannerTestCase extends BaseScannerTest
|
|||
fullyTokenize();
|
||||
assertFalse( callback.problems.isEmpty() );
|
||||
}
|
||||
|
||||
public void testBug61972() throws Exception
|
||||
{
|
||||
initializeScanner( "#define DEF1(A1) A1\n#define DEF2 DEF1(DEF2)\nDEF2;" ); //$NON-NLS-1$
|
||||
validateIdentifier( "DEF2"); //$NON-NLS-1$
|
||||
validateToken( IToken.tSEMI );
|
||||
validateEOF();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue