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