| 1 |
// PR c++/79588 |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-options "-Wrestrict" } |
| 4 |
|
| 5 |
void foo (char *__restrict, char *__restrict = __null); |
| 6 |
|
| 7 |
void |
| 8 |
bar (char *p) |
| 9 |
{ |
| 10 |
foo (p, p); // { dg-warning "to 'restrict'-qualified parameter aliases with" } |
| 11 |
foo (p); |
| 12 |
} |