blob: 03c9144e5d6c85e7a3f2c5cd72cb28a834803e2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Test that overloading on 'this' quals works with class using-declarations.
// { dg-do link }
struct A {
void f() const;
void f() {}
void g() const {}
void g();
void h() const;
void h();
void i() const;
void i() {}
};
struct B: private A {
using A::f;
using A::g;
void h () const {}
using A::h;
void i () const {}
using A::i;
};
int main()
{
B b1;
const B b2 = B();
b1.f ();
b2.g ();
b2.h ();
b1.i ();
}
|