repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
using1.C
blob
03c9144e5d6c85e7a3f2c5cd72cb28a834803e2d
1
// Test that overloading on 'this' quals works with class using-declarations.
2
3
// { dg-do link }
4
5
struct A {
6
void f() const;
7
void f() {}
8
void g() const {}
9
void g();
10
void h() const;
11
void h();
12
void i() const;
13
void i() {}
14
};
15
16
struct B: private A {
17
using A::f;
18
using A::g;
19
void h () const {}
20
using A::h;
21
void i () const {}
22
using A::i;
23
};
24
25
int main()
26
{
27
B b1;
28
const B b2 = B();
29
30
b1.f ();
31
b2.g ();
32
b2.h ();
33
b1.i ();
34
}