mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 18:35:32 +02:00
Test case for bug 361604.
This commit is contained in:
parent
1055cd6604
commit
e65e1eabc1
1 changed files with 27 additions and 5 deletions
|
@ -5538,4 +5538,26 @@ public class AST2TemplateTests extends AST2BaseTest {
|
||||||
public void testTemplateArgumentDeductionWithoutParameters_358654() throws Exception {
|
public void testTemplateArgumentDeductionWithoutParameters_358654() throws Exception {
|
||||||
parseAndCheckBindings();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue