OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
struct X { };
4
struct Y { };
5
struct Z { };
6
 
7
struct Base {
8
  X f() { return X(); }
9
  Y f() const { return Y(); }
10
};
11
 
12
struct Derived : Base {
13
  using Base::f;
14
  Z f(int) { return Z(); }
15
};
16
 
17
int main()
18
{
19
  Derived d;
20
  X x = d.f();                  // { dg-bogus "Y" "" }
21
}
22
 
23
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.