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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [icf.C] - Blame information for rev 715

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 "-O1 -gdwarf-2 -gno-strict-dwarf -fno-inline -dA" }
3
 
4
class A
5
{
6
 public:
7
  A();
8
  virtual void work();
9
  virtual int p();
10
 private:
11
  int i;
12
};
13
 
14
class B
15
{
16
 public:
17
  B();
18
  ~B();
19
  void work(const A* a);
20
 private:
21
  int j;
22
};
23
 
24
int
25
test1(A* a)
26
{
27
  a->work();
28
}
29
 
30
int
31
test2(A* a)
32
{
33
  if (a->p())
34
    {
35
      B b;
36
      b.work(a);
37
    }
38
}

powered by: WebSVN 2.1.0

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