Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / tree-prof / pr59255.C
blob77f208a3a5fe4800a332e2ef75a8d6f905b58076
1 // PR c++/59255
2 // { dg-options "-std=c++11 -O2" }
4 struct S
6   __attribute__((noinline, noclone)) ~S () noexcept (true)
7   {
8     if (fn)
9       fn (1);
10   }
11   void (*fn) (int);
14 __attribute__((noinline, noclone)) void
15 foo (int x)
17   if (x != 1)
18     throw 1;
21 int
22 main ()
24   for (int i = 0; i < 100; i++)
25     {
26       S s;
27       s.fn = foo;
28     }