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-cxx17.cpp
blob
05f85f88ccd85c2b93965a41f015bf156d469d8e
1
// RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -verify -triple x86_64-linux-gnu -std=c++17 %s
2
3
struct
BoolRef
{
4
operator
bool
&();
5
};
6
7
void
foo
(
BoolRef br
) {
8
// C++ [over.built]p3: Increment for bool was removed in C++17.
9
bool
b
=
br
++;
// expected-error{{cannot increment value of type 'BoolRef'}}
10
}