mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 00:57:27 +08:00
New test
From-SVN: r21621
This commit is contained in:
parent
debed82cde
commit
a8b0896fe6
20
gcc/testsuite/g++.old-deja/g++.pt/lookup2.C
Normal file
20
gcc/testsuite/g++.old-deja/g++.pt/lookup2.C
Normal file
@ -0,0 +1,20 @@
|
||||
// Build don't link:
|
||||
// Special g++ Options:
|
||||
|
||||
class A
|
||||
{
|
||||
protected:
|
||||
void f1() {};
|
||||
};
|
||||
|
||||
template <class T> class B : private A {
|
||||
protected:
|
||||
using A::f1;
|
||||
};
|
||||
|
||||
template <class T> class D : private B<T>
|
||||
{
|
||||
public:
|
||||
void f2() { f1(); };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user