repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
pr42806.C
blob
9823238d5d4be65a97f4837f9ede260cff154c23
1
// { dg-do compile }
2
// { dg-options "-O -fcompare-debug" }
3
4
struct S1 {
5
~S1() { }
6
};
7
8
struct S2 {
9
S1 s1;
10
void m();
11
~S2() { m(); }
12
};
13
14
struct S3 {
15
S3(int, S2);
16
};
17
18
void foo()
19
{
20
S3(0, S2());
21
}
22