☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
pr42806.C
☽
☼
gcc/testsuite/g++.dg/other/pr42806.C
code
plain
raw
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