Home
last modified time | relevance | path

Searched refs:cvp (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/
H A Dallocator_pointers.pass.cpp66 static_assert(std::is_same<bool, decltype(cvp == cvp)>::value, ""); in test_pointer()
67 static_assert(std::is_same<bool, decltype(cvp != cvp)>::value, ""); in test_pointer()
68 static_assert(std::is_same<bool, decltype(cvp > cvp)>::value, ""); in test_pointer()
69 static_assert(std::is_same<bool, decltype(cvp >= cvp)>::value, ""); in test_pointer()
70 static_assert(std::is_same<bool, decltype(cvp < cvp)>::value, ""); in test_pointer()
71 static_assert(std::is_same<bool, decltype(cvp <= cvp)>::value, ""); in test_pointer()
103 static_assert(std::is_same<bool, decltype(cvp == cvp)>::value, ""); in test_void_pointer()
104 static_assert(std::is_same<bool, decltype(cvp != cvp)>::value, ""); in test_void_pointer()
105 static_assert(std::is_same<bool, decltype(cvp > cvp)>::value, ""); in test_void_pointer()
106 static_assert(std::is_same<bool, decltype(cvp >= cvp)>::value, ""); in test_void_pointer()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/default.allocator/
H A Dallocator_pointers.pass.cpp65 static_assert(std::is_same<bool, decltype(cvp == cvp)>::value, ""); in test_pointer()
66 static_assert(std::is_same<bool, decltype(cvp != cvp)>::value, ""); in test_pointer()
67 static_assert(std::is_same<bool, decltype(cvp > cvp)>::value, ""); in test_pointer()
68 static_assert(std::is_same<bool, decltype(cvp >= cvp)>::value, ""); in test_pointer()
69 static_assert(std::is_same<bool, decltype(cvp < cvp)>::value, ""); in test_pointer()
70 static_assert(std::is_same<bool, decltype(cvp <= cvp)>::value, ""); in test_pointer()
102 static_assert(std::is_same<bool, decltype(cvp == cvp)>::value, ""); in test_void_pointer()
103 static_assert(std::is_same<bool, decltype(cvp != cvp)>::value, ""); in test_void_pointer()
104 static_assert(std::is_same<bool, decltype(cvp > cvp)>::value, ""); in test_void_pointer()
105 static_assert(std::is_same<bool, decltype(cvp >= cvp)>::value, ""); in test_void_pointer()
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Derr_reference_bind_drops_quals.cpp6 volatile ptr vp, const volatile ptr cvp, restrict volatile ptr rvp, in test1() argument
13 ptr& p6 = cvp; // expected-error {{drops 'const volatile' qualifiers}} in test1()
22 const ptr& cp6 = cvp; // expected-error {{drops 'volatile' qualifier}} in test1()
31 const volatile ptr& cvp6 = cvp; in test1()
40 const restrict volatile ptr& crvp6 = cvp; in test1()
H A Dbuiltins.cpp79 void test_builtin_launder_diags(void *vp, const void *cvp, FnType *fnp, in test_builtin_launder_diags() argument
82 …__builtin_launder(cvp); // expected-error {{void pointer argument to '__builtin_launder' is not a… in test_builtin_launder_diags()
H A Dcompare-cxx2a.cpp192 void test8(void *vp, const void *cvp, int *ip) { in test8() argument
193 (void)(vp <=> cvp); // OK, void* comparisons are allowed. in test8()
195 (void)(ip <=> cvp); in test8()
/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.expl.spec/
H A Dp2.cpp111 void test_x0_cvvoid(N0::X0<const volatile void*> x0, const volatile void *cvp) { in test_x0_cvvoid() argument
112 x0.f1(cvp); // okay: we've explicitly specialized in test_x0_cvvoid()
239 void test_func_template(N0::X0<void *> xvp, void *vp, const void *cvp, in test_func_template() argument
241 xvp.ft1(vp, cvp); in test_func_template()
H A Dp2-0x.cpp143 void test_x0_cvvoid(N0::X0<const volatile void*> x0, const volatile void *cvp) { in test_x0_cvvoid() argument
144 x0.f1(cvp); // okay: we've explicitly specialized in test_x0_cvvoid()
271 void test_func_template(N0::X0<void *> xvp, void *vp, const void *cvp, in test_func_template() argument
273 xvp.ft1(vp, cvp); in test_func_template()
H A Dp1.cpp91 void test_func_template(X0<void *> xvp, void *vp, const void *cvp) { in test_func_template() argument
92 xvp.ft1(vp, cvp); in test_func_template()
/llvm-project-15.0.7/clang/test/C/drs/
H A Ddr1xx.c183 const void dr113_c(const void *cvp) { /* expected-warning {{function cannot return qualified void t… in dr113_c() argument
184 return *cvp; /* expected-warning {{void function 'dr113_c' should not return void expression}} */ in dr113_c()
/llvm-project-15.0.7/clang/test/Sema/
H A Dbuiltins.c262 void test_builtin_launder(char *p, void *vp, const void *cvp, in test_builtin_launder() argument
271 …__builtin_launder(cvp); // expected-error {{void pointer argument to '__builtin_launder' is not al… in test_builtin_launder()
/llvm-project-15.0.7/clang/test/CXX/drs/
H A Ddr1xx.cpp436 extern const volatile void *cvp;
440 int *qcv = static_cast<int*>(cvp); // expected-error {{casts away qualifiers}}
444 const int *cqcv = static_cast<const int*>(cvp); // expected-error {{casts away qualifiers}}
448 const volatile int *cvqcv = static_cast<const volatile int*>(cvp);