| Richard Smith | 762bb9d | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -std=c++11 -verify %s |
| Douglas Gregor | 0b8ddb9 | 2010-10-21 18:04:08 +0000 | [diff] [blame] | 2 | |
| 3 | template <class T> | ||||
| 4 | struct X | ||||
| 5 | { | ||||
| 6 | operator T() const {return T();} | ||||
| 7 | }; | ||||
| 8 | |||||
| 9 | void test_char16t(X<char16_t> x) { | ||||
| 10 | bool b = x == char16_t(); | ||||
| 11 | } | ||||