Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-09-15 23:33:08 -0400
committerNathan Ridge2018-09-24 21:23:23 -0400
commit732c4874ee94ec65bd90b12d44f55d57585471bb (patch)
treed6386fa6b5b55ec4dc33c857bdc464cb52e5f9e1 /core/org.eclipse.cdt.core.tests
parente2e9325bb45f3f95838e32e07f58091fb19046c4 (diff)
downloadorg.eclipse.cdt-732c4874ee94ec65bd90b12d44f55d57585471bb.tar.gz
org.eclipse.cdt-732c4874ee94ec65bd90b12d44f55d57585471bb.tar.xz
org.eclipse.cdt-732c4874ee94ec65bd90b12d44f55d57585471bb.zip
Bug 539076 - Substitution of alias template for template template parameter
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java
index 48a9cd6539a..96af705566e 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java
@@ -10934,4 +10934,24 @@ public class AST2TemplateTests extends AST2CPPTestBase {
public void testMetaprogrammingWithAliasTemplates_534126() throws Exception {
parseAndCheckBindings();
}
+
+ // template <class>
+ // struct hhh {
+ // using type = int;
+ // };
+ //
+ // template <template <class> class TT>
+ // struct iii {
+ // using type = typename TT<int>::type;
+ // };
+ //
+ // template <class A>
+ // using hhh_d = hhh<A>;
+ //
+ // using waldo = typename iii<hhh_d>::type;
+ public void testAliasTemplateAsTemplateTemplateArg_539076() throws Exception {
+ BindingAssertionHelper helper = getAssertionHelper();
+ IType waldo = helper.assertNonProblem("waldo");
+ assertSameType(SemanticUtil.getSimplifiedType(waldo), CommonCPPTypes.int_);
+ }
}

Back to the top