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

llvm-svn: 99617
This commit is contained in:
Gabor Greif 2010-03-26 08:26:30 +00:00
parent 3cfe6af8b5
commit 7da63a36f1
1 changed files with 12 additions and 0 deletions

View File

@ -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 T> class Holder {
T object;