2008-03-21 Janne Blomqvist <jb@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cleanup-7.c
blobeae3d52980c13dca6f4ab98da499c6b5e61c0a80
1 /* { dg-do run } */
2 /* { dg-options "" } */
3 /* Verify that the search for function happens in the proper scope. */
5 extern void exit(int);
6 extern void abort(void);
8 int main()
10 auto void xyzzy(void *p __attribute__((unused)))
12 exit (0);
15 auto void doit ()
17 int x __attribute__((cleanup (xyzzy)));
20 doit ();
21 abort ();