summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wrestrict-1.C
blob: 441ff3482bcc7d2ac14fbd71f89b5dbe10309567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/79588
// { dg-do compile }
// { dg-options "-Wrestrict" }

void foo (char *__restrict, char *__restrict = __null);

void
bar (char *p)
{
  foo (p, p);	// { dg-warning "to 'restrict'-qualified parameter aliases with" }
  foo (p);
}