repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
950426-1.c
blob
076032c7220bd66f11068cc7a90c4dc6d1caa900
1
2
struct
tag
{
3
int
m1
;
4
char
*
m2
[
5
];
5
}
s1
, *
p1
;
6
7
int
i
;
8
9
main
()
10
{
11
s1
.
m1
= -
1
;
12
p1
= &
s1
;
13
14
if
(
func1
( &
p1
->
m1
) == -
1
)
15
foo
(
"ok"
);
16
else
17
abort
();
18
19
i
=
3
;
20
s1
.
m2
[
3
]=
"123"
;
21
22
if
(
strlen
( (
p1
->
m2
[
i
])++ ) ==
3
)
23
foo
(
"ok"
);
24
else
25
abort
();
26
27
exit
(
0
);
28
}
29
30
func1
(
int
*
p
) {
return
(*
p
); }
31
32
foo
(
char
*
s
) {}