2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr51575.C
blobe13379b3737c4126f514df338bf076fa4d97faf4
1 // PR tree-optimization/51575
2 // { dg-do compile }
3 // { dg-options "-O -fnon-call-exceptions" }
5 #include <new>
7 struct S
9   S ()
10   {
11     for (int i = 0; i < 3; ++i)
12       new (&a[i]) double ();
13   }
14   double a[4];
17 void
18 foo ()
20   S s;