New test from PR #3242

From-SVN: r44808
This commit is contained in:
Gabriel Dos Reis 2001-08-11 20:35:58 +00:00
parent 598f25beb6
commit f6a91eb09f
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// { dg-do compile }
struct X { };
struct Y { };
struct Z { };
struct Base {
X f() { return X(); }
Y f() const { return Y(); }
};
struct Derived : Base {
using Base::f;
Z f(int) { return Z(); }
};
int main()
{
Derived d;
X x = d.f();
}