Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr22098-2.c
blob: 035a755a5222bcbc69387df04ca599a46392c058 [
file
] [
log
] [
blame
]
extern
void
abort
(
void
);
extern
void
exit
(
int
);
typedef
__UINTPTR_TYPE__
uintptr_t
;
int
main
(
void
)
{
int
a
=
0
;
int
*
p
;
uintptr_t
b
;
b
=
(
uintptr_t
)(
p
=
&(
int
[]){
0
,
1
,
2
}[
1
]);
if
(*
p
!=
1
||
*(
int
*)
b
!=
1
)
abort
();
exit
(
0
);
}