Home
last modified time | relevance | path

Searched refs:static_assert (Results 1 – 25 of 2936) sorted by relevance

12345678910>>...118

/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dtest-meta.cc35 static_assert (hb_is_convertible (void, void), ""); in main()
36 static_assert (hb_is_convertible (void, const void), ""); in main()
37 static_assert (hb_is_convertible (const void, void), ""); in main()
39 static_assert (hb_is_convertible (int, int), ""); in main()
40 static_assert (hb_is_convertible (char, int), ""); in main()
41 static_assert (hb_is_convertible (long, int), ""); in main()
43 static_assert (hb_is_convertible (int, int), ""); in main()
45 static_assert (hb_is_convertible (const int, int), ""); in main()
46 static_assert (hb_is_convertible (int, const int), ""); in main()
47 static_assert (hb_is_convertible (const int, const int), ""); in main()
[all …]
/third_party/harfbuzz/src/
Dtest-meta.cc37 static_assert (hb_is_convertible (void, void), ""); in main()
38 static_assert (hb_is_convertible (void, const void), ""); in main()
39 static_assert (hb_is_convertible (const void, void), ""); in main()
41 static_assert (hb_is_convertible (int, int), ""); in main()
42 static_assert (hb_is_convertible (char, int), ""); in main()
43 static_assert (hb_is_convertible (long, int), ""); in main()
45 static_assert (hb_is_convertible (int, int), ""); in main()
47 static_assert (hb_is_convertible (const int, int), ""); in main()
48 static_assert (hb_is_convertible (int, const int), ""); in main()
49 static_assert (hb_is_convertible (const int, const int), ""); in main()
[all …]
/third_party/googletest/googlemock/test/
Dgmock-pp_test.cc13 static_assert(GMOCK_PP_CAT(1, 4) == 14, "");
14 static_assert(GMOCK_PP_INTERNAL_INTERNAL_16TH(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
17 static_assert(GMOCK_PP_NARG() == 1, "");
18 static_assert(GMOCK_PP_NARG(x) == 1, "");
19 static_assert(GMOCK_PP_NARG(x, y) == 2, "");
20 static_assert(GMOCK_PP_NARG(x, y, z) == 3, "");
21 static_assert(GMOCK_PP_NARG(x, y, z, w) == 4, "");
22 static_assert(!GMOCK_PP_HAS_COMMA(), "");
23 static_assert(GMOCK_PP_HAS_COMMA(b, ), "");
24 static_assert(!GMOCK_PP_HAS_COMMA((, )), "");
[all …]
/third_party/boost/libs/hof/test/
Dis_invocable.cpp44 static_assert(boost::hof::is_invocable<is_callable_class, int>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
45 static_assert(boost::hof::is_invocable<is_callable_class, long>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
46 static_assert(boost::hof::is_invocable<is_callable_class, double>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
47 static_assert(boost::hof::is_invocable<is_callable_class, const int&>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
48 static_assert(boost::hof::is_invocable<is_callable_class, const long&>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
49static_assert(boost::hof::is_invocable<is_callable_class, const double&>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
50static_assert(not boost::hof::is_invocable<is_callable_class, callable_test_param>::value, "callab… in BOOST_HOF_STATIC_TEST_CASE()
51 static_assert(not boost::hof::is_invocable<is_callable_class>::value, "callable failed"); in BOOST_HOF_STATIC_TEST_CASE()
52static_assert(not boost::hof::is_invocable<is_callable_class, int, int>::value, "callable failed"); in BOOST_HOF_STATIC_TEST_CASE()
55static_assert(boost::hof::is_invocable<is_callable_function_pointer, int>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
[all …]
Dplaceholders.cpp26static_assert(boost::hof::detail::is_default_constructible<boost::hof::operators::name>::value, "O…
32 static_assert(noexcept(__VA_ARGS__), "noexcept placeholders")
41static_assert(boost::hof::detail::is_default_constructible<boost::hof::placeholder<1>>::value, "Pl… in BOOST_HOF_TEST_CASE()
42static_assert(boost::hof::detail::is_default_constructible<boost::hof::placeholder<2>>::value, "Pl… in BOOST_HOF_TEST_CASE()
43static_assert(boost::hof::detail::is_default_constructible<boost::hof::placeholder<3>>::value, "Pl… in BOOST_HOF_TEST_CASE()
69 static_assert(std::is_copy_constructible<decltype(f_square_add)>::value, "Not copyable"); in BOOST_HOF_TEST_CASE()
78 static_assert(std::is_copy_constructible<decltype(f_invoke_2)>::value, "Not copyable"); in BOOST_HOF_TEST_CASE()
88 static_assert(std::is_copy_constructible<decltype(f_add)>::value, "Not copyable"); in BOOST_HOF_TEST_CASE()
90static_assert(boost::hof::detail::is_default_constructible<decltype(f_add)>::value, "Not default c… in BOOST_HOF_TEST_CASE()
96 static_assert(std::is_copy_constructible<decltype(f_subtract)>::value, "Not copyable"); in BOOST_HOF_TEST_CASE()
[all …]
/third_party/boost/libs/hana/test/core/
Dis_embedded.cpp15 static_assert(hana::is_embedded<double, long double>{}, "");
16 static_assert(hana::is_embedded<float, long double>{}, "");
17 static_assert(hana::is_embedded<float, double>{}, "");
19 static_assert(hana::is_embedded<signed long, signed long long>{}, "");
20 static_assert(hana::is_embedded<signed int, signed long long>{}, "");
21 static_assert(hana::is_embedded<signed short, signed long long>{}, "");
22 static_assert(hana::is_embedded<signed char, signed long long>{}, "");
23 static_assert(hana::is_embedded<signed int, signed long>{}, "");
24 static_assert(hana::is_embedded<signed short, signed long>{}, "");
25 static_assert(hana::is_embedded<signed char, signed long>{}, "");
[all …]
/third_party/skia/modules/androidkit/src/
DUtils.cpp28 static_assert(static_cast<int>(SkTileMode::kClamp ) == 0); in TileMode()
29 static_assert(static_cast<int>(SkTileMode::kRepeat) == 1); in TileMode()
30 static_assert(static_cast<int>(SkTileMode::kMirror) == 2); in TileMode()
31 static_assert(static_cast<int>(SkTileMode::kDecal ) == 3); in TileMode()
38 static_assert(0 == static_cast<int>(SkBlendMode::kClear)); in BlendMode()
39 static_assert(1 == static_cast<int>(SkBlendMode::kSrc)); in BlendMode()
40 static_assert(2 == static_cast<int>(SkBlendMode::kDst)); in BlendMode()
41 static_assert(3 == static_cast<int>(SkBlendMode::kSrcOver)); in BlendMode()
42 static_assert(4 == static_cast<int>(SkBlendMode::kDstOver)); in BlendMode()
43 static_assert(5 == static_cast<int>(SkBlendMode::kSrcIn)); in BlendMode()
[all …]
/third_party/skia/third_party/externals/tint/src/
Dtraits_test.cc31 static_assert(std::is_same<ParameterType<decltype(&F1), 0>, S>::value, ""); in TEST()
32 static_assert(std::is_same<ParameterType<decltype(&F3), 0>, int>::value, ""); in TEST()
33 static_assert(std::is_same<ParameterType<decltype(&F3), 1>, S>::value, ""); in TEST()
34 static_assert(std::is_same<ParameterType<decltype(&F3), 2>, float>::value, in TEST()
36 static_assert(std::is_same<ReturnType<decltype(&F1)>, void>::value, ""); in TEST()
37 static_assert(std::is_same<ReturnType<decltype(&F3)>, void>::value, ""); in TEST()
38 static_assert(SignatureOfT<decltype(&F1)>::parameter_count == 1, ""); in TEST()
39 static_assert(SignatureOfT<decltype(&F3)>::parameter_count == 3, ""); in TEST()
50 static_assert(std::is_same<ParameterType<decltype(&C::F1), 0>, S>::value, ""); in TEST()
51 static_assert(std::is_same<ParameterType<decltype(&C::F3), 0>, int>::value, in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
Dosfiber_asm_ppc64.h128 static_assert(offsetof(marl_fiber_context, r1) == MARL_REG_R1,
130 static_assert(offsetof(marl_fiber_context, r2) == MARL_REG_R2,
132 static_assert(offsetof(marl_fiber_context, r13) == MARL_REG_R13,
134 static_assert(offsetof(marl_fiber_context, r15) == MARL_REG_R15,
136 static_assert(offsetof(marl_fiber_context, r16) == MARL_REG_R16,
138 static_assert(offsetof(marl_fiber_context, r17) == MARL_REG_R17,
140 static_assert(offsetof(marl_fiber_context, r18) == MARL_REG_R18,
142 static_assert(offsetof(marl_fiber_context, r19) == MARL_REG_R19,
144 static_assert(offsetof(marl_fiber_context, r20) == MARL_REG_R20,
146 static_assert(offsetof(marl_fiber_context, r21) == MARL_REG_R21,
[all …]
Dosfiber_asm_aarch64.h92 static_assert(offsetof(marl_fiber_context, r0) == MARL_REG_r0,
94 static_assert(offsetof(marl_fiber_context, r1) == MARL_REG_r1,
96 static_assert(offsetof(marl_fiber_context, r16) == MARL_REG_r16,
98 static_assert(offsetof(marl_fiber_context, r17) == MARL_REG_r17,
100 static_assert(offsetof(marl_fiber_context, r18) == MARL_REG_r18,
102 static_assert(offsetof(marl_fiber_context, r19) == MARL_REG_r19,
104 static_assert(offsetof(marl_fiber_context, r20) == MARL_REG_r20,
106 static_assert(offsetof(marl_fiber_context, r21) == MARL_REG_r21,
108 static_assert(offsetof(marl_fiber_context, r22) == MARL_REG_r22,
110 static_assert(offsetof(marl_fiber_context, r23) == MARL_REG_r23,
[all …]
Dosfiber_asm_mips64.h80 static_assert(offsetof(marl_fiber_context, a0) == MARL_REG_a0,
82 static_assert(offsetof(marl_fiber_context, a1) == MARL_REG_a1,
84 static_assert(offsetof(marl_fiber_context, s0) == MARL_REG_s0,
86 static_assert(offsetof(marl_fiber_context, s1) == MARL_REG_s1,
88 static_assert(offsetof(marl_fiber_context, s2) == MARL_REG_s2,
90 static_assert(offsetof(marl_fiber_context, s3) == MARL_REG_s3,
92 static_assert(offsetof(marl_fiber_context, s4) == MARL_REG_s4,
94 static_assert(offsetof(marl_fiber_context, s5) == MARL_REG_s5,
96 static_assert(offsetof(marl_fiber_context, s6) == MARL_REG_s6,
98 static_assert(offsetof(marl_fiber_context, s7) == MARL_REG_s7,
[all …]
Dosfiber_asm_arm.h75 static_assert(offsetof(marl_fiber_context, r0) == MARL_REG_r0,
77 static_assert(offsetof(marl_fiber_context, r1) == MARL_REG_r1,
79 static_assert(offsetof(marl_fiber_context, r12) == MARL_REG_r12,
81 static_assert(offsetof(marl_fiber_context, r4) == MARL_REG_r4,
83 static_assert(offsetof(marl_fiber_context, r5) == MARL_REG_r5,
85 static_assert(offsetof(marl_fiber_context, r6) == MARL_REG_r6,
87 static_assert(offsetof(marl_fiber_context, r7) == MARL_REG_r7,
89 static_assert(offsetof(marl_fiber_context, r8) == MARL_REG_r8,
91 static_assert(offsetof(marl_fiber_context, r9) == MARL_REG_r9,
93 static_assert(offsetof(marl_fiber_context, r10) == MARL_REG_r10,
[all …]
/third_party/skia/src/gpu/
DGrStencilSettings.cpp23 static_assert(kAll_StencilFlags == (gUnused.fCWFlags[0] & gUnused.fCCWFlags[0]));
65 static_assert(sizeof(Face) == in reset()
85 static_assert(sizeof(Face) == in operator ==()
89 static_assert(0 == offsetof(Face, fRef)); in operator ==()
90 static_assert(2 == sizeof(Face::fRef)); in operator ==()
91 static_assert(2 == offsetof(Face, fTest)); in operator ==()
92 static_assert(2 == sizeof(Face::fTest)); in operator ==()
93 static_assert(4 == offsetof(Face, fTestMask)); in operator ==()
94 static_assert(2 == sizeof(Face::fTestMask)); in operator ==()
95 static_assert(6 == offsetof(Face, fPassOp)); in operator ==()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
Dbits_test.cc28 static_assert(rotl(uint8_t{0x12}, 0) == uint8_t{0x12}, ""); in TEST()
29 static_assert(rotl(uint16_t{0x1234}, 0) == uint16_t{0x1234}, ""); in TEST()
30 static_assert(rotl(uint32_t{0x12345678UL}, 0) == uint32_t{0x12345678UL}, ""); in TEST()
31 static_assert(rotl(uint64_t{0x12345678ABCDEF01ULL}, 0) == in TEST()
67 static_assert(rotr(uint8_t{0x12}, 0) == uint8_t{0x12}, ""); in TEST()
68 static_assert(rotr(uint16_t{0x1234}, 0) == uint16_t{0x1234}, ""); in TEST()
69 static_assert(rotr(uint32_t{0x12345678UL}, 0) == uint32_t{0x12345678UL}, ""); in TEST()
70 static_assert(rotr(uint64_t{0x12345678ABCDEF01ULL}, 0) == in TEST()
149 static_assert(countl_zero(uint8_t{}) == 8, ""); in TEST()
150 static_assert(countl_zero(static_cast<uint8_t>(-1)) == 0, ""); in TEST()
[all …]
/third_party/skia/third_party/externals/oboe/src/aaudio/
DAAudioLoader.cpp237 #define ASSERT_INT32(type) static_assert(std::is_same<int32_t, type>::value, \
254 static_assert((int32_t)StreamState::Uninitialized == AAUDIO_STREAM_STATE_UNINITIALIZED, ERRMSG);
255 static_assert((int32_t)StreamState::Unknown == AAUDIO_STREAM_STATE_UNKNOWN, ERRMSG);
256 static_assert((int32_t)StreamState::Open == AAUDIO_STREAM_STATE_OPEN, ERRMSG);
257 static_assert((int32_t)StreamState::Starting == AAUDIO_STREAM_STATE_STARTING, ERRMSG);
258 static_assert((int32_t)StreamState::Started == AAUDIO_STREAM_STATE_STARTED, ERRMSG);
259 static_assert((int32_t)StreamState::Pausing == AAUDIO_STREAM_STATE_PAUSING, ERRMSG);
260 static_assert((int32_t)StreamState::Paused == AAUDIO_STREAM_STATE_PAUSED, ERRMSG);
261 static_assert((int32_t)StreamState::Flushing == AAUDIO_STREAM_STATE_FLUSHING, ERRMSG);
262 static_assert((int32_t)StreamState::Flushed == AAUDIO_STREAM_STATE_FLUSHED, ERRMSG);
[all …]
/third_party/boost/libs/hana/test/functional/
Diterate.cpp25 static_assert(hana::iterate<3>(incr, 0) == 3, ""); in main()
111 static_assert(hana::iterate<23>(incr, 0) == 23, ""); in main()
112 static_assert(hana::iterate<24>(incr, 0) == 24, ""); in main()
113 static_assert(hana::iterate<25>(incr, 0) == 25, ""); in main()
114 static_assert(hana::iterate<26>(incr, 0) == 26, ""); in main()
115 static_assert(hana::iterate<27>(incr, 0) == 27, ""); in main()
116 static_assert(hana::iterate<28>(incr, 0) == 28, ""); in main()
117 static_assert(hana::iterate<29>(incr, 0) == 29, ""); in main()
119 static_assert(hana::iterate<30>(incr, 0) == 30, ""); in main()
120 static_assert(hana::iterate<31>(incr, 0) == 31, ""); in main()
[all …]
Dplaceholder.cpp26 static_assert((_ op _)(x, y) == (x op y), ""); \
29 static_assert(!valid_call(_ op _), ""); \
30 static_assert(!valid_call(_ op _, invalid), ""); \
31 static_assert(!valid_call(_ op _, invalid, invalid), ""); \
33 static_assert((_ op y)(x) == (x op y), ""); \
36 static_assert(!valid_call(_ op y), ""); \
37 static_assert(!valid_call(_ op y, invalid), ""); \
39 static_assert((x op _)(y) == (x op y), ""); \
42 static_assert(!valid_call(x op _), ""); \
43 static_assert(!valid_call(x op _, invalid), ""); \
[all …]
/third_party/boost/libs/hana/test/detail/
Dfast_and.cpp9 static_assert(hana::detail::fast_and<>::value, "");
10 static_assert(hana::detail::fast_and<true>::value, "");
11 static_assert(!hana::detail::fast_and<false>::value, "");
13 static_assert(hana::detail::fast_and<true, true>::value, "");
14 static_assert(!hana::detail::fast_and<true, false>::value, "");
15 static_assert(!hana::detail::fast_and<false, true>::value, "");
16 static_assert(!hana::detail::fast_and<false, false>::value, "");
18 static_assert(hana::detail::fast_and<true, true, true>::value, "");
19 static_assert(!hana::detail::fast_and<true, true, false>::value, "");
20 static_assert(!hana::detail::fast_and<true, false, true>::value, "");
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dcivil_time_test.cc47 static_assert(css.second() == 12, "Normal.second"); in TEST()
49 static_assert(cmm.minute() == 14, "Normal.minute"); in TEST()
51 static_assert(chh.hour() == 17, "Normal.hour"); in TEST()
53 static_assert(cd.day() == 28, "Normal.day"); in TEST()
55 static_assert(cm.month() == 1, "Normal.month"); in TEST()
57 static_assert(cy.year() == 2016, "Normal.year"); in TEST()
62 static_assert(cy.year() == 2016, "Conversion.year"); in TEST()
64 static_assert(cm.month() == 1, "Conversion.month"); in TEST()
66 static_assert(cd.day() == 1, "Conversion.day"); in TEST()
68 static_assert(chh.hour() == 0, "Conversion.hour"); in TEST()
[all …]
/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dcivil_time_test.cc47 static_assert(css.second() == 12, "Normal.second"); in TEST()
49 static_assert(cmm.minute() == 14, "Normal.minute"); in TEST()
51 static_assert(chh.hour() == 17, "Normal.hour"); in TEST()
53 static_assert(cd.day() == 28, "Normal.day"); in TEST()
55 static_assert(cm.month() == 1, "Normal.month"); in TEST()
57 static_assert(cy.year() == 2016, "Normal.year"); in TEST()
62 static_assert(cy.year() == 2016, "Conversion.year"); in TEST()
64 static_assert(cm.month() == 1, "Conversion.month"); in TEST()
66 static_assert(cd.day() == 1, "Conversion.day"); in TEST()
68 static_assert(chh.hour() == 0, "Conversion.hour"); in TEST()
[all …]
/third_party/boost/libs/multiprecision/test/
Dconstexpr_test_float128.cpp19 static_assert(f128 == -134.0f); in main()
22 static_assert(i == -134); in main()
25 static_assert(s == -134); in main()
30 static_assert((__float128)b == 0); in main()
35 static_assert((__float128)b == 119); in main()
39 static_assert(fpclassify(a) == FP_ZERO); in main()
41 static_assert(fpclassify(b) == FP_NORMAL); in main()
43 static_assert(fpclassify(c) == FP_NORMAL); in main()
44 static_assert(abs(c) >= 0); in main()
45 static_assert(fabs(c) >= 0); in main()
[all …]
Dconstexpr_test_arithmetic_backend.cpp25 static_assert(b == -108); in main()
26 static_assert(llv == -108); in main()
27 static_assert(d == 554); in main()
34 static_assert(b == 22); in main()
35 static_assert(d == 22); in main()
43 static_assert(b == 230); in main()
44 static_assert(d == 120); in main()
46 static_assert(b == 210); in main()
47 static_assert(d == 106); in main()
55 static_assert(b == 82); in main()
[all …]
/third_party/boost/libs/multiprecision/example/
Dconstexpr_float_arithmetic_examples.cpp277 static_assert(pa[0] == 3); in test_double()
278 static_assert(pa[1] == 4); in test_double()
280 static_assert(pc[0] == 6); in test_double()
281 static_assert(pc[1] == 8); in test_double()
283 static_assert(pd[0] == 3 * 3); in test_double()
284 static_assert(pd[1] == 4 * 3); in test_double()
286 static_assert(pe[0] == 3 + 5); in test_double()
287 static_assert(pe[1] == 4 + 6); in test_double()
289 static_assert(pf[0] == 3 - 5); in test_double()
290 static_assert(pf[1] == 4 - 6); in test_double()
[all …]
/third_party/boost/libs/outcome/test/tests/
Dcore-result.cpp80static_assert(std::is_constructible<result<long>, int>::value, "Sanity check that monad can be con…
81static_assert(!std::is_constructible<result<result<long>>, int>::value, "Sanity check that outer m…
83static_assert(!std::is_constructible<result<result<result<long>>>, int>::value, "Sanity check that…
84static_assert(!std::is_constructible<result<result<result<result<long>>>>, int>::value, "Sanity ch…
87static_assert(std::is_constructible<result<int>, result<long>>::value, "Sanity check that compatib…
88static_assert(std::is_constructible<result<result<int>>, result<long>>::value, "Sanity check that …
90static_assert(!std::is_constructible<result<result<result<int>>>, result<long>>::value, "Sanity ch…
91static_assert(!std::is_constructible<result<result<result<result<int>>>>, result<long>>::value, "S…
93static_assert(!std::is_constructible<result<std::string>, result<int>>::value, "Sanity check that …
96static_assert(std::is_constructible<result<int>, result<void>>::value, "Sanity check that all mona…
[all …]
/third_party/boost/libs/gil/test/core/pixel/
Dpacked_pixel.cpp27 static_assert(std::is_same<fixture::packed_pixel_gray3::layout_t, gil::gray_layout_t>::value, in test_packed_pixel_gray3_definition()
30static_assert(std::is_same<fixture::packed_pixel_gray3::value_type, fixture::packed_pixel_gray3>::… in test_packed_pixel_gray3_definition()
33 static_assert(std::is_reference<fixture::packed_pixel_gray3::reference>::value, in test_packed_pixel_gray3_definition()
36 static_assert(std::is_reference<fixture::packed_pixel_gray3::const_reference>::value, in test_packed_pixel_gray3_definition()
39static_assert(std::is_same<decltype(fixture::packed_pixel_gray3::is_mutable), bool const>::value && in test_packed_pixel_gray3_definition()
45 static_assert(mp11::mp_size<fixture::packed_channel_references_3>::value == 1, in test_packed_pixel_gray3_definition()
49 static_assert(channel1_ref_t::num_bits == 3, in test_packed_pixel_gray3_definition()
52 static_assert(std::is_same in test_packed_pixel_gray3_definition()
60 static_assert(std::is_same in test_packed_pixel_gray3_definition()
71 static_assert(std::is_same in test_packed_pixel_gray3_definition()
[all …]

12345678910>>...118