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
PR inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr27260.c
blob
daec0c3361e1fdb1c37975662c2e8f45cb81ff63
1
/* PR middle-end/27260 */
2
3
extern
void
abort
(
void
);
4
extern
void
*
memset
(
void
*,
int
,
__SIZE_TYPE__
);
5
6
char
buf
[
65
];
7
8
void
9
foo
(
int
x
)
10
{
11
memset
(
buf
,
x
!=
2
?
1
:
0
,
64
);
12
}
13
14
int
15
main
(
void
)
16
{
17
int
i
;
18
buf
[
64
] =
2
;
19
for
(
i
=
0
;
i
<
64
;
i
++)
20
if
(
buf
[
i
] !=
0
)
21
abort
();
22
foo
(
0
);
23
for
(
i
=
0
;
i
<
64
;
i
++)
24
if
(
buf
[
i
] !=
1
)
25
abort
();
26
foo
(
2
);
27
for
(
i
=
0
;
i
<
64
;
i
++)
28
if
(
buf
[
i
] !=
0
)
29
abort
();
30
if
(
buf
[
64
] !=
2
)
31
abort
();
32
return
0
;
33
}