Home
last modified time | relevance | path

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

/external/llvm-project/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/
Dallocator_pointers.pass.cpp41 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/
Dallocator_pointers.pass.cpp41 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/
Dallocator_pointers.pass.cpp40 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/
Dallocator_pointers.pass.cpp40 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/
Dtest_opaque_types.py19 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/
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' 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/
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()
Dbuiltins.cpp68 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()
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()
/external/llvm-project/clang/test/CXX/temp/temp.spec/temp.expl.spec/
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()
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()
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()
/external/clang/test/CXX/temp/temp.spec/temp.expl.spec/
Dp2.cpp141 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()
Dp2-0x.cpp146 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()
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()
/external/libxml2/
Dxmllint.c2769 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/
Ddr1xx.cpp406 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/
Dbuiltins.c263 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/
Ddr1xx.cpp439 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/
Dmul.ll2 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
Dadd.ll1 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
Dshl.ll2 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
Dsub.ll2 ; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s