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

Added test.

This commit is contained in:
John Camelon 2005-05-31 15:22:58 +00:00
parent 78baded270
commit 3d244f21f0

View file

@ -3126,4 +3126,11 @@ public class AST2Tests extends AST2BaseTest {
assertTrue( t instanceof IBasicType );
assertEquals( ((IBasicType)t).getType(), IBasicType.t_int );
}
public void testBug95866() throws Exception {
IASTTranslationUnit tu = parse( "int test[10] = { [0 ... 9] = 2 };", ParserLanguage.C, true, true );
CNameCollector col = new CNameCollector();
tu.accept(col);
assertNoProblemBindings(col);
}
}