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 foo(BoolRef br)7void 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 }