mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added test.
This commit is contained in:
parent
78baded270
commit
3d244f21f0
1 changed files with 7 additions and 0 deletions
|
@ -3126,4 +3126,11 @@ public class AST2Tests extends AST2BaseTest {
|
||||||
assertTrue( t instanceof IBasicType );
|
assertTrue( t instanceof IBasicType );
|
||||||
assertEquals( ((IBasicType)t).getType(), IBasicType.t_int );
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue