Richard Smith | 9ca5c42 | 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 | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Douglas Gregor | cd1d0b4 | 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 | } |