| /llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/ |
| H A D | allocator_pointers.pass.cpp | 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() 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 D | allocator_pointers.pass.cpp | 65 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 D | err_reference_bind_drops_quals.cpp | 6 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 D | builtins.cpp | 79 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 D | compare-cxx2a.cpp | 192 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 D | p2.cpp | 111 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 D | p2-0x.cpp | 143 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 D | p1.cpp | 91 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 D | dr1xx.c | 183 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 D | builtins.c | 262 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 D | dr1xx.cpp | 436 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);
|