| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | class C { |
| 5 | C(void*); |
| 6 | }; |
| 7 | |
| 8 | int f(const C&); |
| 9 | int f(unsigned long); |
| 10 | |
| 11 | template<typename T> int f(const T* t) { |
| 12 | return f(reinterpret_cast<unsigned long>(t)); |
| 13 | } |
| 14 | |
| 15 |