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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr49615.C] - Rev 694

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

/* { dg-do compile } */
/* { dg-options "-g" } */

template <class T>
static inline bool Dispatch (T* obj, void (T::*func) ())
{
  (obj->*func) ();
}
class C
{
  bool f (int);
  void g ();
};
bool C::f (int n)
{
  bool b;
  switch (n)
    {
      case 0:
          b = Dispatch (this, &C::g);
      case 1:
          b = Dispatch (this, &C::g);
    }
}
void C::g ()
{
  for (;;) { }
}

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.