Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-parm-11.C
blob: 35896df93bb65548d4ec1419d6cc82f9422e1135 [
file
] [
log
] [
blame
]
// PR c++/83806
// { dg-do compile { target c++11 } }
// { dg-options "-Wunused-but-set-parameter" }
template
<
class
X
,
class
Y
>
bool
equals
(
X x
,
Y y
)
{
return
(
x
==
y
);
}
int
main
()
{
const
char
*
p
=
nullptr
;
equals
(
p
,
nullptr
);
}