| 1 |
// PR c++/83806 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "-Wunused-but-set-parameter" } |
| 4 |
|
| 5 |
template <class X, class Y> |
| 6 |
bool equals(X x, Y y) { |
| 7 |
return (x == y); |
| 8 |
} |
| 9 |
|
| 10 |
int main() { |
| 11 |
const char* p = nullptr; |
| 12 |
equals(p, nullptr); |
| 13 |
} |