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
* expmed.c (flip_storage_order): Deal with complex modes specially.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr22098-3.c
blob
4f37be86c8c966fd4489f1b02521c67839c37038
1
extern
void
abort
(
void
);
2
extern
void
exit
(
int
);
3
typedef
__UINTPTR_TYPE__
uintptr_t
;
4
int
n
=
0
;
5
int
f
(
void
) {
return
++
n
; }
6
int
7
main
(
void
)
8
{
9
int
a
=
0
;
10
int
*
p
;
11
uintptr_t
b
;
12
b
= (
uintptr_t
)(
p
= &(
int
[]){
0
,
f
(),
2
}[
1
]);
13
if
(*
p
!=
1
|| *(
int
*)
b
!=
1
||
n
!=
1
)
14
abort
();
15
exit
(
0
);
16
}