1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00
This commit is contained in:
John Camelon 2004-06-04 15:03:15 +00:00
parent f8ede5731b
commit 157f44eef3
3 changed files with 17 additions and 0 deletions

View file

@ -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$
}
}

View file

@ -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$
}
}

View file

@ -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();
}
}