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
/
pr38048-1.c
blob
b87363f644674cdeff0a3111330ae0a4ccef5df2
1
extern
void
abort
(
void
);
2
3
int
foo
()
4
{
5
int
mat
[
2
][
1
];
6
int
(*
a
)[
1
] =
mat
;
7
int
det
=
0
;
8
int
i
;
9
mat
[
0
][
0
] =
1
;
10
mat
[
1
][
0
] =
2
;
11
for
(
i
=
0
;
i
<
2
; ++
i
)
12
det
+=
a
[
i
][
0
];
13
return
det
;
14
}
15
16
int
main
()
17
{
18
if
(
foo
() !=
3
)
19
abort
();
20
return
0
;
21
}
22