Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Anders Carlsson | bbf306b | 2009-08-28 15:55:56 +0000 | [diff] [blame] | 2 | |
3 | class C { | ||||
4 | C(void*); | ||||
5 | }; | ||||
6 | |||||
7 | int f(const C&); | ||||
8 | int f(unsigned long); | ||||
9 | |||||
10 | template<typename T> int f(const T* t) { | ||||
11 | return f(reinterpret_cast<unsigned long>(t)); | ||||
12 | } | ||||
13 |