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
2013-10-29 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
restrict-2.c
blob
ec51ade61636742a83bca33b0601bd4c520355d9
1
/* { dg-do run } */
2
3
extern
void
abort
(
void
);
4
5
static
inline
void
6
foo
(
int
*
p
)
7
{
8
int
*
__restrict pr
=
p
;
9
*
pr
=
1
;
10
}
11
12
int
__attribute__
((
noinline
,
noclone
))
13
bar
(
int
*
q
)
14
{
15
int
*
__restrict qr
=
q
;
16
*
qr
=
0
;
17
foo
(
qr
);
18
return
*
qr
;
19
}
20
21
int
main
()
22
{
23
int
i
;
24
if
(
bar
(&
i
) !=
1
)
25
abort
();
26
return
0
;
27
}