Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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/AST2CPPTests.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
index 94c9023c58c..134cc592ab3 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
@@ -13101,4 +13101,38 @@ public class AST2CPPTests extends AST2CPPTestBase {
BindingAssertionHelper bh = getAssertionHelper();
bh.assertImplicitName("foo", 3, IProblemBinding.class);
}
+
+ // class Time {
+ // };
+ //
+ // template<class T>
+ // class Test {
+ // private:
+ // T t;
+ // public:
+ // void test() {
+ // Time time = t.get();
+ // }
+ // };
+ public void testCopyInitializationFromDependentType_546843() throws Exception {
+ parseAndCheckImplicitNameBindings();
+ }
+
+ // class Time {
+ // int a;
+ // };
+ //
+ // template<class T>
+ // class Test {
+ // private:
+ // T t;
+ // public:
+ // void test() {
+ // Time time{t.get()};
+ // }
+ // };
+ public void testListInitializationFromDependentType_546843() throws Exception {
+ parseAndCheckImplicitNameBindings();
+ }
+
}

Back to the top