repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2008-03-21 Janne Blomqvist <jb@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
cleanup-7.c
blob
eae3d52980c13dca6f4ab98da499c6b5e61c0a80
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
}