From: Gabor Greif Date: Fri, 26 Mar 2010 08:26:30 +0000 (+0000) Subject: add a slight variation of test3, where X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c3745af0a171bd62605177e53fc0fce3ff6ab25;p=clang add a slight variation of test3, where argument list seems to be different, but in fact is semantically equivalent; check that we do not error here git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99617 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/class.access/class.friend/p1.cpp b/test/CXX/class.access/class.friend/p1.cpp index 1dea44f7d9..22266cd8f8 100644 --- a/test/CXX/class.access/class.friend/p1.cpp +++ b/test/CXX/class.access/class.friend/p1.cpp @@ -166,6 +166,18 @@ namespace test3 { } } +namespace test3a { + class A { protected: int x; }; + + class B : public A { + friend int foo(B*); + }; + + int foo(B * const p) { + return p->x; + } +} + namespace test4 { template class Holder { T object;