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-11.c
blob
b3c4c9ec75835b450f2df483787853c35e664ded
1
// { dg-do run }
2
3
#include <string.h>
4
5
char
cc
;
6
char
ptr
[] =
"sparta2"
;
7
8
void
get
(
char
**
x
)
9
{
10
*
x
=
ptr
;
11
}
12
13
int
main
()
14
{
15
char
*
here
= &
cc
;
16
17
for
(;;)
18
{
19
next_line
:
20
if
(
here
==
NULL
)
21
__builtin_abort
();
22
get
(&
here
);
23
if
(
strcmp
(
here
,
"sparta"
) ==
0
)
24
goto
next_line
;
25
else if
(
strcmp
(
here
,
"sparta2"
) ==
0
)
26
break
;
27
}
28
29
return
0
;
30
}