2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr25857.C
blob4e6858fe1958b24222faa8b561bcb55f4fc44b99
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 int foo();
5 int i;
7 struct A
9   ~A() { if (this != (A*)(&i)) foo(); }
12 struct B
14   A a1, a2, a3, a4;
15   ~B() { foo(); }
18 B b;