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
/
tree-prof
/
pr47187.c
blob
467ce252b060e13486eac8fe7a7bbd08baad9236
1
/* PR bootstrap/47187 */
2
/* { dg-options "-O2" } */
3
4
char
buf
[
64
];
5
char
buf2
[
64
];
6
7
void
*
8
foo
(
char
*
p
,
long
size
)
9
{
10
return
__builtin_memcpy
(
buf
,
p
,
size
);
11
}
12
13
int
14
main
(
void
)
15
{
16
long
i
;
17
for
(
i
=
0
;
i
<
65536
;
i
++)
18
if
(
foo
(
"abcdefghijkl"
,
12
) !=
buf
)
19
__builtin_abort
();
20
if
(
foo
(
buf2
,
64
) !=
buf
)
21
__builtin_abort
();
22
return
0
;
23
}