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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using37.C] - Rev 693

Compare with Previous | Blame | View Log

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

template<class T> struct B
{
    void foo(T) {}
};

template<class T>
struct D : B<int>, B<double>
{
  using B<int>::foo;
  using B<double>::foo;
  void bar() { foo(3); }
};

int main()
{
  D<int> x;
  x.bar();
  return 0;
}

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.