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
/
20140828-1.c
blob
5eeb8e01aed977b3232bf3df4cac3391f6ed60e3
1
short
*
f
(
short
*
a
,
int
b
,
int
*
d
)
__attribute__
((
noinline
,
noclone
));
2
3
short
*
f
(
short
*
a
,
int
b
,
int
*
d
)
4
{
5
short
c
= *
a
;
6
a
++;
7
c
=
b
<<
c
;
8
*
d
=
c
;
9
return
a
;
10
}
11
12
int
main
(
void
)
13
{
14
int
d
;
15
short
a
[
2
];
16
a
[
0
] =
0
;
17
if
(
f
(
a
,
1
, &
d
) != &
a
[
1
])
18
__builtin_abort
();
19
if
(
d
!=
1
)
20
__builtin_abort
();
21
return
0
;
22
}