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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
restrict-3.c
blob
d815b8076e66cb165103b60d4be2ae604502eecc
1
/* { dg-do run } */
2
3
extern
void
abort
(
void
);
4
5
static
inline
void
6
foo
(
int
*
__restrict pr
)
7
{
8
*
pr
=
1
;
9
}
10
11
int
__attribute__
((
noinline
,
noclone
))
12
bar
(
int
*
q
)
13
{
14
int
*
__restrict qr
=
q
;
15
*
qr
=
0
;
16
foo
(
qr
);
17
return
*
qr
;
18
}
19
20
int
main
()
21
{
22
int
i
;
23
if
(
bar
(&
i
) !=
1
)
24
abort
();
25
return
0
;
26
}