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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wreturn-local-addr.c
blob
d496d205e89b54bd751bf91864f247923002d1d8
1
/* { dg-do assemble } */
2
/* { dg-options "-Werror=return-local-addr" } */
3
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
4
5
int
*
bad
()
6
{
7
int
x
=
0
;
8
return
&
x
;
/* { dg-error "address of local variable" } */
9
}