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 tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
931004-3.c
blob
1e7a0fdcd536fbf60cd1eef3e9ff0951537664c6
1
struct
tiny
2
{
3
short
c
;
4
};
5
6
f
(
int
n
,
struct
tiny x
,
struct
tiny y
,
struct
tiny z
,
long
l
)
7
{
8
if
(
x
.
c
!=
10
)
9
abort
();
10
11
if
(
y
.
c
!=
11
)
12
abort
();
13
14
if
(
z
.
c
!=
12
)
15
abort
();
16
17
if
(
l
!=
123
)
18
abort
();
19
}
20
21
main
()
22
{
23
struct
tiny x
[
3
];
24
x
[
0
].
c
=
10
;
25
x
[
1
].
c
=
11
;
26
x
[
2
].
c
=
12
;
27
f
(
3
,
x
[
0
],
x
[
1
],
x
[
2
], (
long
)
123
);
28
exit
(
0
);
29
}
30