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
/
20001203-1.c
blob
803c6a8905233e4933d3962b875c242fb04192e3
1
/* Origin: PR c/410 from Jan Echternach
2
<jan.echternach@informatik.uni-rostock.de>,
3
adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
4
*/
5
6
extern
void
exit
(
int
);
7
8
static void
9
foo
(
void
)
10
{
11
struct
{
12
long
a
;
13
char
b
[
1
];
14
}
x
= {
2
, {
0
} };
15
}
16
17
int
18
main
(
void
)
19
{
20
int
tmp
;
21
foo
();
22
tmp
=
1
;
23
exit
(
0
);
24
}