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
* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
asan
/
use-after-scope-7.c
blob
4115205916063e10eb5c4c9fc220388bc1dfccb4
1
// { dg-do run }
2
// { dg-additional-options "-fno-sanitize-address-use-after-scope" }
3
4
int
5
main
(
void
)
6
{
7
char
*
ptr
;
8
{
9
char
my_char
[
9
];
10
ptr
= &
my_char
[
0
];
11
}
12
13
*
ptr
=
'c'
;
14
return
0
;
15
}