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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/20206
2
// { dg-do run }
3
// { dg-options "-O0" }
4
 
5
void
6
bar (int x)
7
{
8
  asm ("" : : "g" (x));
9
}
10
 
11
struct S { S () {}; virtual ~S () {}; };
12
struct T { virtual void foo (int) = 0; };
13
struct U : public S, public T
14
{
15
  bool a;
16
  U () {}
17
  virtual ~U () {}
18
  virtual void foo (int x)
19
  {
20
    switch (x)
21
      {
22
      case 12:
23
        break;
24
      case 9:
25
        bar (7);
26
        break;
27
      case 10:
28
        bar (12);
29
        break;
30
      case 4:
31
        bar (18);
32
        break;
33
      case 2:
34
        bar (26);
35
        break;
36
      }
37
  }
38
};
39
U u;
40
 
41
int
42
main ()
43
{
44
}

powered by: WebSVN 2.1.0

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