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] - Rev 717

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

// PR c++/25994
// { dg-do run }

struct B1
{
  void f (char) {}
  void f (double) { __builtin_abort(); }
};

struct B2
{
  void f (double) { __builtin_abort(); }
  void f (int) {}
};

struct D : public B1, public B2
{
  using B1::f;
  using B2::f;
  void g ()
  {
    f ('a');           // should call B1::f(char)
    f (33);            // should call B2::f(int)
  }
};

int main()
{
  D d;
  d.g();
}

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

powered by: WebSVN 2.1.0

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