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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [cleanup2.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
// PR c++/12491
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
// The return statements are necessary to trigger this bug.
6
 
7
class Object
8
{
9
public:
10
  virtual ~Object (void) { return; }
11
};
12
 
13
class AutoPtr
14
{
15
public:
16
  ~AutoPtr (void) { delete m_rep; return; }
17
private:
18
  const Object *m_rep;
19
};
20
 
21
class Handle
22
{
23
public:
24
  ~Handle (void) { return; }
25
private:
26
    AutoPtr m_rep;
27
};
28
 
29
class HandleOf:public Handle
30
{
31
public:
32
  ~HandleOf (void) { return; }
33
};
34
 
35
class Error
36
{
37
public:
38
  ~Error (void);
39
private:
40
  HandleOf m_hndl;
41
};
42
 
43
Error::~Error (void)
44
{
45
  return;
46
}

powered by: WebSVN 2.1.0

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