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:
parent
5fdc4f5c05
commit
2332b3b0f3
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
2003-03-22 John Camelon
|
||||
Added CompleteParseASTTest::testBug54531().
|
||||
|
||||
2003-03-22 Andrew Niefer
|
||||
Typedefs & templates
|
||||
- added parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.testTypedefedTemplate()
|
||||
|
|
|
@ -1770,4 +1770,15 @@ public class CompleteParseASTTest extends CompleteParseBaseTest
|
|||
new Task( b ),
|
||||
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() );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue