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 |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Douglas Gregor | 0b8ddb9 | 2010-10-21 18:04:08 +0000 | [diff] [blame] | 3 | |
4 | template <class T> | ||||
5 | struct X | ||||
6 | { | ||||
7 | operator T() const {return T();} | ||||
8 | }; | ||||
9 | |||||
10 | void test_char16t(X<char16_t> x) { | ||||
11 | bool b = x == char16_t(); | ||||
12 | } |