blob: 8cbacabba62466e63d47bac4b7d45f1c23c586c1 [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" } */
}