/cp
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-parm-11.C
blob35896df93bb65548d4ec1419d6cc82f9422e1135
1 // PR c++/83806
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused-but-set-parameter" }
5 template <class X, class Y>
6 bool equals(X x, Y y) {
7     return (x == y); 
10 int main() {
11     const char* p = nullptr;
12     equals(p, nullptr);