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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [dtor1.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run }
2
// { dg-options "-O2" }
3
 
4
int i;
5
 
6
struct S {
7
  S ();
8
  S (const S&);
9
  ~S ();
10
};
11
 
12
S::S () { ++i; }
13
S::S (const S&) { ++i; }
14
S::~S () { --i; }
15
 
16
inline void f (S) {
17
}
18
 
19
int main () {
20
  {
21
    S s;
22
    f (s);
23
  }
24
 
25
  return i;
26
}
27
 

powered by: WebSVN 2.1.0

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