[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / overloaded-builtin-operators-0x.cpp
blobbf543892e43db99d872c2ca1d602a8abe8193bac
1 // RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -std=c++11 -verify %s
2 // expected-no-diagnostics
4 template <class T>
5 struct X
7 operator T() const {return T();}
8 };
10 void test_char16t(X<char16_t> x) {
11 bool b = x == char16_t();