diff options
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java')
-rw-r--r-- | core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | 14 |
1 files changed, 14 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 59becb789f7..d3cd6746235 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 @@ -10586,6 +10586,20 @@ public class AST2CPPTests extends AST2TestBase { public void testFriendConstructorDestructor_400940() throws Exception { parseAndCheckBindings(); } + + // namespace Hugo { + // class C { + // friend class Waldo; + // }; + // } + // using namespace Hugo; + // class Waldo {}; + // void foo() { + // Waldo c; // error here + // } + public void testFriendClassLookup_512932() throws Exception { + parseAndCheckBindings(); + } // struct S { // virtual void mFuncDecl() final; |