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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using36.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/25994
2
// { dg-do run }
3
 
4
struct B1
5
{
6
  void f (char) {}
7
  void f (double) { __builtin_abort(); }
8
};
9
 
10
struct B2
11
{
12
  void f (double) { __builtin_abort(); }
13
  void f (int) {}
14
};
15
 
16
struct D : public B1, public B2
17
{
18
  using B1::f;
19
  using B2::f;
20
  void g ()
21
  {
22
    f ('a');           // should call B1::f(char)
23
    f (33);            // should call B2::f(int)
24
  }
25
};
26
 
27
int main()
28
{
29
  D d;
30
  d.g();
31
}

powered by: WebSVN 2.1.0

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