Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
pr35503-3.c
blob: 8d4b1fc03ee5b13fefa3373677318fd8213540aa [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wrestrict" } */
void
f
(
int
*
x
,
int
*
__restrict y
);
void
foo
(
int
a
)
{
f
(&
a
,
&
a
);
/* { dg-warning "passing argument 2 to 'restrict'-qualified parameter aliases with argument 1" } */
}