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] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-g" } */
3
 
4
template 
5
static inline bool Dispatch (T* obj, void (T::*func) ())
6
{
7
  (obj->*func) ();
8
}
9
class C
10
{
11
  bool f (int);
12
  void g ();
13
};
14
bool C::f (int n)
15
{
16
  bool b;
17
  switch (n)
18
    {
19
      case 0:
20
          b = Dispatch (this, &C::g);
21
      case 1:
22
          b = Dispatch (this, &C::g);
23
    }
24
}
25
void C::g ()
26
{
27
  for (;;) { }
28
}
29
 

powered by: WebSVN 2.1.0

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