Home
last modified time | relevance | path

Searched refs:ExplicitBool (Results 1 – 2 of 2) sorted by relevance

/llvm-project/libcxx/test/std/utilities/function.objects/func.not_fn/
H A Dnot_fn.pass.cpp51 struct ExplicitBool { struct
52 ExplicitBool(ExplicitBool const&) = default;
53 ExplicitBool(ExplicitBool&&) = default;
58 friend struct MoveOnlyCallable<ExplicitBool>; argument
59 friend struct CopyCallable<ExplicitBool>;
61 constexpr explicit ExplicitBool(bool x) : value(x) {} in ExplicitBool() function
62 constexpr ExplicitBool& operator=(bool x) { in operator =() argument
174 using T = CopyCallable<ExplicitBool>; in return_type_tests()
/llvm-project/clang/test/SemaCXX/
H A Dcxx0x-defaulted-functions.cpp202 struct ExplicitBool { struct
203ExplicitBool &operator=(bool) = default; // expected-error{{only special member functions may be d…
208 ExplicitBool t; in fn()