1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 10:25:32 +02:00

Test case for bug 361604.

This commit is contained in:
Sergey Prigogin 2011-10-20 21:27:55 -07:00
parent 1055cd6604
commit e65e1eabc1

View file

@ -5538,4 +5538,26 @@ public class AST2TemplateTests extends AST2BaseTest {
public void testTemplateArgumentDeductionWithoutParameters_358654() throws Exception {
parseAndCheckBindings();
}
// template<bool V, typename T>
// struct C {
// typedef int s;
// };
//
// template<typename T>
// struct C<false, T> {
// typedef T s;
// };
//
// struct B {
// typedef B u;
// };
//
// typedef C<sizeof(char) == sizeof(int), B> r;
// typedef r::s t;
// t::u x;
public void _testBoolExpressionAsTemplateArgument_361604() throws Exception {
final String code= getAboveComment();
parseAndCheckBindings(code);
}
}