repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
opt
/
dtor1.C
blob
0352676c5f7325aeca98ac49d70cfa5e20ec83cc
1
// { 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