mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 15:31:09 +08:00
new
From-SVN: r32277
This commit is contained in:
parent
1290d12913
commit
52eccb8fd8
21
gcc/testsuite/g++.old-deja/g++.other/using7.C
Normal file
21
gcc/testsuite/g++.old-deja/g++.other/using7.C
Normal file
@ -0,0 +1,21 @@
|
||||
// Build don't link:
|
||||
|
||||
class A {
|
||||
protected:
|
||||
static void f() {};
|
||||
};
|
||||
|
||||
class B : A {
|
||||
public:
|
||||
using A::f;
|
||||
void g() {
|
||||
f();
|
||||
A::f();
|
||||
}
|
||||
struct C {
|
||||
void g() {
|
||||
f();
|
||||
A::f();
|
||||
}
|
||||
};
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user