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
pr79732.c: Require alias support.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr57425-2.c
blob
ccb546e0ee78708e4ed7441cfa067e66c294d3a3
1
/* { dg-do run } */
2
3
extern
void
abort
(
void
)
__attribute__
((
noreturn
));
4
5
int
6
main
()
7
{
8
int
sum
=
0
;
9
{
10
int
a
[
20
];
11
int
*
c
;
12
c
=
a
;
13
asm
(
""
:
"=r"
(
c
):
"0"
(
c
));
14
*
c
=
0
;
15
asm
(
""
:
"=r"
(
c
):
"0"
(
c
));
16
sum
+= *
c
;
17
}
18
{
19
long
b
[
10
];
20
long
*
c
;
21
c
=
b
;
22
asm
(
""
:
"=r"
(
c
):
"0"
(
c
));
23
*
c
=
1
;
24
asm
(
""
:
"=r"
(
c
):
"0"
(
c
));
25
sum
+= *
c
;
26
}
27
28
if
(
sum
!=
1
)
29
abort
();
30
return
0
;
31
}