Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Anders Carlsson | bbf306b | 2009-08-28 15:55:56 +0000 | [diff] [blame] | 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 |