1 /* { dg-do run } */
2 /* { dg-options "" } */
3 /* Verify that the search for function happens in the proper scope. */
4
5 extern void exit(int);
6 extern void abort(void);
7
8 int main()
9 {
10 auto void xyzzy(void *p __attribute__((unused)))
11 {
12 exit (0);
13 }
14
15 auto void doit ()
16 {
17 int x __attribute__((cleanup (xyzzy)));
18 }
19
20 doit ();
21 abort ();
22 }