repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
overloaded-builtin-operators-0x.cpp
blob
bf543892e43db99d872c2ca1d602a8abe8193bac
1
// RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -std=c++11 -verify %s
2
// expected-no-diagnostics
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
}