2 /* { dg-options "" } */
3 /* Verify cleanup execution on non-trivial exit from a block. */
5 extern "C" void exit(int);
6 extern "C" void abort(void);
16 static void __attribute__((noinline))
21 static void doit(int n, int n2)
24 for (i = 0; i < n; ++i)
26 int dummy __attribute__((cleanup (handler))) = i;
36 if (counter != 0 + 1 + 2 + 3 + 4 + 5 + 6)