3 // { dg-options "-Wrestrict" }
5 void foo (char *__restrict, char *__restrict = __null);
11 foo (p[0], p[0]); // { dg-warning "to restrict-qualified parameter aliases with" }
12 foo (p[0], p[N]); // { dg-warning "to restrict-qualified parameter aliases with" }
20 foo (p[0], p[0]); // { dg-warning "to restrict-qualified parameter aliases with" }
21 foo (p[0], p[N]); // { dg-bogus "to restrict-qualified parameter aliases with" }