Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
restrict-1.c
blob: e7af4f538ced6785105d951320d86933622147a7 [
file
] [
log
] [
blame
]
/* { dg-do run } */
extern
void
abort
(
void
);
void
__attribute__
((
noinline
,
noclone
))
foo
(
int
**
__restrict__ p
,
int
**
__restrict__ q
)
{
**
p
=
**
q
;
}
int
main
()
{
int
x
=
0
,
y
=
1
,
*
i
=
&
x
,
*
j
=
&
y
;
foo
(&
i
,
&
j
);
if
(
x
!=
1
)
abort
();
return
0
;
}