Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);
}