* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / cleanup-2.C
blobd9033b4542452bb90e21624b0919c4a90c09a7fa
1 /* { dg-do run } */
2 /* { dg-options "" } */
3 /* Verify that cleanup works in the most basic of ways.  */
5 extern "C" void exit(int);
6 extern "C" void abort(void);
8 static void handler(void *p __attribute__((unused)))
10   exit (0);
13 static void doit(void)
15   int x __attribute__((cleanup (handler)));
18 int main()
20   doit ();
21   abort ();