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
[X86] Move getGFNICtrlMask before CTLZ/CTTZ lowering. NFC.
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
switch-0x.cpp
blob
2e74da0a46348e3546e0f9fe2ae60d3501f26e48
1
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3
// PR5518
4
struct
A
{
5
explicit operator
int
();
// expected-note{{conversion to integral type}}
6
};
7
8
void
x
() {
9
switch
(
A
()) {
// expected-error{{explicit conversion to}}
10
}
11
}