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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040411-1.c
blob
8db456229bd8c39efe71f8b9942cc4480ef48df5
1
int
2
sub1
(
int
i
,
int
j
)
3
{
4
typedef
int
c
[
i
+
2
];
5
int
x
[
10
],
y
[
10
];
6
7
if
(
j
==
2
)
8
{
9
memcpy
(
x
,
y
,
10
*
sizeof
(
int
));
10
return sizeof
(
c
);
11
}
12
else
13
return sizeof
(
c
) *
3
;
14
}
15
16
int
17
main
()
18
{
19
if
(
sub1
(
20
,
3
) !=
66
*
sizeof
(
int
))
20
abort
();
21
22
return
0
;
23
}