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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
asan
/
pr80308.c
blob
bcfa6ae4ab4f7c23b8377f14dcea01f07040afa5
1
/* PR sanitizer/80308 */
2
/* { dg-do run } */
3
4
__attribute__
((
noinline
,
noclone
))
int
5
foo
(
char
*
a
)
6
{
7
int
i
,
j
=
0
;
8
asm
volatile
(
""
:
"+r"
(
a
) : :
"memory"
);
9
for
(
i
=
0
;
i
<
12
;
i
++)
10
j
+=
a
[
i
];
11
return
j
;
12
}
13
14
int
15
main
()
16
{
17
int
i
,
j
=
0
;
18
for
(
i
=
0
;
i
<
4
;
i
++)
19
{
20
char
a
[
12
];
21
__builtin_memset
(
a
,
0
,
sizeof
(
a
));
22
j
+=
foo
(
a
);
23
}
24
return
j
;
25
}