2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr55260-1.C
blob552da8df2620832ca73b82f9a6f65fb463342a8e
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu++0x -fno-inline" } */
3 /* { dg-add-options bind_pic_locally } */
5   struct B
6   {
7   constexpr B ():
8     bp ()
9     {}
10     ~B ()
11     {
12       if (bp)
13         bp->f ();
14     }
15     void f ();
16     B *bp;
17   };
18 struct A  {    B b;
21 void foo ()
23   A a;