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
/
pr22098-2.c
blob
035a755a5222bcbc69387df04ca599a46392c058
1
extern
void
abort
(
void
);
2
extern
void
exit
(
int
);
3
typedef
__UINTPTR_TYPE__
uintptr_t
;
4
int
5
main
(
void
)
6
{
7
int
a
=
0
;
8
int
*
p
;
9
uintptr_t
b
;
10
b
= (
uintptr_t
)(
p
= &(
int
[]){
0
,
1
,
2
}[
1
]);
11
if
(*
p
!=
1
|| *(
int
*)
b
!=
1
)
12
abort
();
13
exit
(
0
);
14
}