Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java16
1 files changed, 16 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 dea19e865e7..31e4ef589b2 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
@@ -7149,4 +7149,20 @@ public class AST2TemplateTests extends AST2TestBase {
public void testRegression_399142() throws Exception {
parseAndCheckBindings();
}
+
+ // template <class T>
+ // struct A {
+ // struct impl {
+ // static T x;
+ // };
+ // static const int value = sizeof(impl::x);
+ // };
+ // template <int> struct W {};
+ // template <> struct W<1> { typedef int type; };
+ // int main() {
+ // W<A<char>::value>::type w;
+ // }
+ public void testDependentExpressionInvolvingFieldInNestedClass_399362() throws Exception {
+ parseAndCheckBindings();
+ }
}

Back to the top