Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
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" } */
}