blob: 8d4b1fc03ee5b13fefa3373677318fd8213540aa (
plain)
1
2
3
4
5
6
7
8
9
|
/* { 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" } */
}
|