1 // { dg-do compile } 2 // { dg-options "-O -fcompare-debug" } 3 4 struct S1 { ~S1S15 ~S1() { } 6 }; 7 8 struct S2 { 9 S1 s1; 10 void m(); ~S2S211 ~S2() { m(); } 12 }; 13 14 struct S3 { 15 S3(int, S2); 16 }; 17 foo()18 void foo() 19 { 20 S3(0, S2()); 21 } 22 23