Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
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" } */
}