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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr45412.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2 -fipa-cp-clone -ftracer" }
3
 
4
int foo (int *);
5
void bar ();
6
 
7
struct S
8
{
9
  virtual int vm ();
10
  ~S ();
11
};
12
 
13
int
14
S::vm ()
15
{
16
  int state;
17
  switch (foo (&state))
18
    {
19
      case 0:
20
          bar ();
21
      case 1:
22
          delete this;
23
    }
24
  return state;
25
}
26
 

powered by: WebSVN 2.1.0

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