From 26f4a8e9a2577c14f394d016d1496567b26d0eb0 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Thu, 27 Nov 2008 23:32:06 +0000 Subject: [PATCH] Test case for bug 256840. --- .../core/parser/tests/ast2/AST2CPPTests.java | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 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 c6aee05d55b..914dc250492 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 @@ -6135,14 +6135,26 @@ public class AST2CPPTests extends AST2BaseTest { } } - // namespace ns { - // template class CT {}; - // } - // using ns::CT; + // namespace ns { + // template class CT {}; + // } + // using ns::CT; public void testTemplateIDInUsingDecl_251199() throws Exception { parseAndCheckBindings(getAboveComment(), ParserLanguage.CPP); } + // namespace ns { + // struct A {}; + // } + // + // struct B { + // operator ns::A(); // problems on operator ns and on A + // }; + public void _testNamespaceQualifiedOperator_256840() throws Exception { + BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true); + bh.assertNonProblem("operator ns::A", 14); + } + // void f(); // // void test(int p) {