forked from OSchip/llvm-project
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:
parent
3cfe6af8b5
commit
7da63a36f1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue