1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Added CompleteParseASTTest::testBug54531()

This commit is contained in:
John Camelon 2004-03-22 19:42:28 +00:00
parent 5fdc4f5c05
commit 2332b3b0f3
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,6 @@
2003-03-22 John Camelon
Added CompleteParseASTTest::testBug54531().
2003-03-22 Andrew Niefer 2003-03-22 Andrew Niefer
Typedefs & templates Typedefs & templates
- added parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.testTypedefedTemplate() - added parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.testTypedefedTemplate()

View file

@ -1770,4 +1770,15 @@ public class CompleteParseASTTest extends CompleteParseBaseTest
new Task( b ), new Task( b ),
new Task( f21, 1, false, false ) ) ); new Task( f21, 1, false, false ) ) );
} }
public void testBug54531() throws Exception
{
Iterator i = parse( "typedef enum _A {} A, *pA;" ).getDeclarations();
IASTTypedefDeclaration theEnum = (IASTTypedefDeclaration) i.next();
assertEquals( theEnum.getName(), "A");
IASTTypedefDeclaration thePointer = (IASTTypedefDeclaration) i.next();
assertEquals( thePointer.getName(), "pA" );
assertFalse( i.hasNext() );
}
} }