Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wrestrict-1.C
blob: 441ff3482bcc7d2ac14fbd71f89b5dbe10309567 [
file
] [
log
] [
blame
]
// 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
);
}