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 inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr43987.c
blob
ee41bdf2717fd8103b295d83f3706e779ad0bcad
1
char
B
[
256
*
sizeof
(
void
*)];
2
typedef
void
*
FILE
;
3
typedef
struct
globals
{
4
int
c
;
5
FILE
*
l
;
6
}
__attribute__
((
may_alias
))
T
;
7
void
add_input_file
(
FILE
*
file
)
8
{
9
(*(
T
*)&
B
).
l
[
0
] =
file
;
10
}
11
extern
void
abort
(
void
);
12
int
main
()
13
{
14
FILE
x
;
15
(*(
T
*)&
B
).
l
= &
x
;
16
add_input_file
((
void
*)-
1
);
17
if
((*(
T
*)&
B
).
l
[
0
] != (
void
*)-
1
)
18
abort
();
19
return
0
;
20
}