/external/llvm-project/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/ |
D | allocator_pointers.pass.cpp | 41 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer() local 44 ((void)cvp); // Prevent unused warning in test_pointer() 53 static_assert(std::is_same<bool, decltype( vp == cvp)>::value, ""); in test_pointer() 54 static_assert(std::is_same<bool, decltype(cvp == vp)>::value, ""); in test_pointer() 55 static_assert(std::is_same<bool, decltype( vp != cvp)>::value, ""); in test_pointer() 56 static_assert(std::is_same<bool, decltype(cvp != vp)>::value, ""); in test_pointer() 57 static_assert(std::is_same<bool, decltype( vp > cvp)>::value, ""); in test_pointer() 58 static_assert(std::is_same<bool, decltype(cvp > vp)>::value, ""); in test_pointer() 59 static_assert(std::is_same<bool, decltype( vp >= cvp)>::value, ""); in test_pointer() 60 static_assert(std::is_same<bool, decltype(cvp >= vp)>::value, ""); in test_pointer() [all …]
|
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/ |
D | allocator_pointers.pass.cpp | 41 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer() local 44 ((void)cvp); // Prevent unused warning in test_pointer() 53 static_assert(std::is_same<bool, decltype( vp == cvp)>::value, ""); in test_pointer() 54 static_assert(std::is_same<bool, decltype(cvp == vp)>::value, ""); in test_pointer() 55 static_assert(std::is_same<bool, decltype( vp != cvp)>::value, ""); in test_pointer() 56 static_assert(std::is_same<bool, decltype(cvp != vp)>::value, ""); in test_pointer() 57 static_assert(std::is_same<bool, decltype( vp > cvp)>::value, ""); in test_pointer() 58 static_assert(std::is_same<bool, decltype(cvp > vp)>::value, ""); in test_pointer() 59 static_assert(std::is_same<bool, decltype( vp >= cvp)>::value, ""); in test_pointer() 60 static_assert(std::is_same<bool, decltype(cvp >= vp)>::value, ""); in test_pointer() [all …]
|
/external/libcxx/test/std/utilities/memory/default.allocator/ |
D | allocator_pointers.pass.cpp | 40 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer() local 43 ((void)cvp); // Prevent unused warning in test_pointer() 52 static_assert(std::is_same<bool, decltype( vp == cvp)>::value, ""); in test_pointer() 53 static_assert(std::is_same<bool, decltype(cvp == vp)>::value, ""); in test_pointer() 54 static_assert(std::is_same<bool, decltype( vp != cvp)>::value, ""); in test_pointer() 55 static_assert(std::is_same<bool, decltype(cvp != vp)>::value, ""); in test_pointer() 56 static_assert(std::is_same<bool, decltype( vp > cvp)>::value, ""); in test_pointer() 57 static_assert(std::is_same<bool, decltype(cvp > vp)>::value, ""); in test_pointer() 58 static_assert(std::is_same<bool, decltype( vp >= cvp)>::value, ""); in test_pointer() 59 static_assert(std::is_same<bool, decltype(cvp >= vp)>::value, ""); in test_pointer() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/memory/default.allocator/ |
D | allocator_pointers.pass.cpp | 40 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer() local 43 ((void)cvp); // Prevent unused warning in test_pointer() 52 static_assert(std::is_same<bool, decltype( vp == cvp)>::value, ""); in test_pointer() 53 static_assert(std::is_same<bool, decltype(cvp == vp)>::value, ""); in test_pointer() 54 static_assert(std::is_same<bool, decltype( vp != cvp)>::value, ""); in test_pointer() 55 static_assert(std::is_same<bool, decltype(cvp != vp)>::value, ""); in test_pointer() 56 static_assert(std::is_same<bool, decltype( vp > cvp)>::value, ""); in test_pointer() 57 static_assert(std::is_same<bool, decltype(cvp > vp)>::value, ""); in test_pointer() 58 static_assert(std::is_same<bool, decltype( vp >= cvp)>::value, ""); in test_pointer() 59 static_assert(std::is_same<bool, decltype(cvp >= vp)>::value, ""); in test_pointer() [all …]
|
/external/python/pybind11/tests/ |
D | test_opaque_types.py | 19 cvp = m.ClassWithSTLVecProperty() 20 assert m.print_opaque_list(cvp.stringList) == "Opaque list: []" 22 cvp.stringList = lst 23 cvp.stringList.push_back("Element 3") 24 assert m.print_opaque_list(cvp.stringList) == "Opaque list: [Element 1, Element 3]"
|
/external/clang/test/SemaCXX/ |
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' and '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()
|
/external/llvm-project/clang/test/SemaCXX/ |
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()
|
D | builtins.cpp | 68 void test_builtin_launder_diags(void *vp, const void *cvp, FnType *fnp, in test_builtin_launder_diags() argument 71 …__builtin_launder(cvp); // expected-error {{void pointer argument to '__builtin_launder' is not a… in test_builtin_launder_diags()
|
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()
|
/external/llvm-project/clang/test/CXX/temp/temp.spec/temp.expl.spec/ |
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()
|
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()
|
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()
|
/external/clang/test/CXX/temp/temp.spec/temp.expl.spec/ |
D | p2.cpp | 141 void test_x0_cvvoid(N0::X0<const volatile void*> x0, const volatile void *cvp) { in test_x0_cvvoid() argument 142 x0.f1(cvp); // okay: we've explicitly specialized in test_x0_cvvoid() 281 void test_func_template(N0::X0<void *> xvp, void *vp, const void *cvp, in test_func_template() argument 283 xvp.ft1(vp, cvp); in test_func_template()
|
D | p2-0x.cpp | 146 void test_x0_cvvoid(N0::X0<const volatile void*> x0, const volatile void *cvp) { in test_x0_cvvoid() argument 147 x0.f1(cvp); // okay: we've explicitly specialized in test_x0_cvvoid() 274 void test_func_template(N0::X0<void *> xvp, void *vp, const void *cvp, in test_func_template() argument 276 xvp.ft1(vp, cvp); in test_func_template()
|
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()
|
/external/libxml2/ |
D | xmllint.c | 2769 xmlValidCtxtPtr cvp; in parseAndPrintFile() local 2771 if ((cvp = xmlNewValidCtxt()) == NULL) { in parseAndPrintFile() 2776 cvp->userData = NULL; in parseAndPrintFile() 2777 cvp->error = xmlGenericError; in parseAndPrintFile() 2778 cvp->warning = xmlGenericError; in parseAndPrintFile() 2783 if (!xmlValidateDtd(cvp, doc, dtd)) { in parseAndPrintFile() 2797 xmlFreeValidCtxt(cvp); in parseAndPrintFile() 2801 xmlValidCtxtPtr cvp; in parseAndPrintFile() local 2803 if ((cvp = xmlNewValidCtxt()) == NULL) { in parseAndPrintFile() 2812 cvp->userData = NULL; in parseAndPrintFile() [all …]
|
/external/clang/test/CXX/drs/ |
D | dr1xx.cpp | 406 extern const volatile void *cvp; 410 int *qcv = static_cast<int*>(cvp); // expected-error {{casts away qualifiers}} 414 const int *cqcv = static_cast<const int*>(cvp); // expected-error {{casts away qualifiers}} 418 const volatile int *cvqcv = static_cast<const volatile int*>(cvp);
|
/external/llvm-project/clang/test/Sema/ |
D | builtins.c | 263 void test_builtin_launder(char *p, void *vp, const void *cvp, in test_builtin_launder() argument 272 …__builtin_launder(cvp); // expected-error {{void pointer argument to '__builtin_launder' is not al… in test_builtin_launder()
|
/external/llvm-project/clang/test/CXX/drs/ |
D | dr1xx.cpp | 439 extern const volatile void *cvp; 443 int *qcv = static_cast<int*>(cvp); // expected-error {{casts away qualifiers}} 447 const int *cqcv = static_cast<const int*>(cvp); // expected-error {{casts away qualifiers}} 451 const volatile int *cvqcv = static_cast<const volatile int*>(cvp);
|
/external/llvm-project/llvm/test/Transforms/CorrelatedValuePropagation/ |
D | mul.ll | 2 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
|
D | add.ll | 1 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
|
D | shl.ll | 2 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
|
D | sub.ll | 2 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
|