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
2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
asan
/
pr56330.c
blob
25759f4ec9e9faf203ca7c7ef16bf2ff5b26d912
1
/* PR sanitizer/56330 */
2
/* { dg-do compile } */
3
4
char
e
[
200
];
5
6
struct
S
7
{
8
char
a
[
100
];
9
char
b
[
100
];
10
}
s
;
11
12
int
13
foo
(
void
)
14
{
15
int
i
=
__builtin_memcmp
(
s
.
a
,
e
,
100
);
16
i
+=
__builtin_memcmp
(
s
.
a
,
e
,
200
);
17
return
i
;
18
}
19
20
void
21
bar
(
int
*
a
,
char
*
b
,
char
*
c
)
22
{
23
__builtin_memmove
(
c
,
b
,
a
[
b
[
0
]]);
24
}