HomeSort by relevance Sort by last modified time
    Searched refs:static_assert (Results 251 - 275 of 5247) sorted by null

<<11121314151617181920>>

  /external/clang/test/CXX/special/class.copy/
p25-0x.cpp 6 static_assert(B == __has_trivial_assign(T), "");
7 static_assert(B == __is_trivially_assignable(T&, T), "");
8 static_assert(B == __is_trivially_assignable(T&, const T &), "");
9 static_assert(B == __is_trivially_assignable(T&, T &&), "");
10 static_assert(B == __is_trivially_assignable(T&&, T), "");
11 static_assert(B == __is_trivially_assignable(T&&, const T &), "");
12 static_assert(B == __is_trivially_assignable(T&&, T &&), "");
58 static_assert(!__is_trivially_assignable(MutableTemplateCtorMember, const MutableTemplateCtorMember &), "");
59 static_assert(__is_trivially_assignable(MutableTemplateCtorMember, MutableTemplateCtorMember &&), "");
70 static_assert(!__has_trivial_assign(TNT), "lie deliberately for gcc compatibility")
    [all...]
  /external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
aligned_storage.pass.cpp 23 static_assert(std::is_same<std::aligned_storage_t<10, 1>, T1>::value, "" );
25 static_assert(std::alignment_of<T1>::value == 1, "");
26 static_assert(sizeof(T1) == 10, "");
31 static_assert(std::is_same<std::aligned_storage_t<10, 2>, T1>::value, "" );
33 static_assert(std::alignment_of<T1>::value == 2, "");
34 static_assert(sizeof(T1) == 10, "");
39 static_assert(std::is_same<std::aligned_storage_t<10, 4>, T1>::value, "" );
41 static_assert(std::alignment_of<T1>::value == 4, "");
42 static_assert(sizeof(T1) == 12, "");
47 static_assert(std::is_same<std::aligned_storage_t<10, 8>, T1>::value, "" )
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/meta/meta.trans/meta.trans.other/
aligned_storage.pass.cpp 23 static_assert(std::is_same<std::aligned_storage_t<10, 1>, T1>::value, "" );
25 static_assert(std::alignment_of<T1>::value == 1, "");
26 static_assert(sizeof(T1) == 10, "");
31 static_assert(std::is_same<std::aligned_storage_t<10, 2>, T1>::value, "" );
33 static_assert(std::alignment_of<T1>::value == 2, "");
34 static_assert(sizeof(T1) == 10, "");
39 static_assert(std::is_same<std::aligned_storage_t<10, 4>, T1>::value, "" );
41 static_assert(std::alignment_of<T1>::value == 4, "");
42 static_assert(sizeof(T1) == 12, "");
47 static_assert(std::is_same<std::aligned_storage_t<10, 8>, T1>::value, "" )
    [all...]
  /external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/propagate_const.relops/
not_equal.pass.cpp 42 static_assert(!(x1_1 != x2_1), "");
43 static_assert(x1_1 != x3_2, "");
51 static_assert(!(p1_1 != p2_1), "");
52 static_assert(p1_1 != p3_2, "");
54 static_assert(!(x1_1 != p1_1), "");
55 static_assert(x1_1 != p3_2, "");
57 static_assert(!(p1_1 != x1_1), "");
58 static_assert(p1_1 != x3_2, "");
60 static_assert(p1_1!=nullptr,"");
61 static_assert(nullptr!=p1_1,"")
    [all...]
  /external/libcxx/test/std/thread/futures/futures.overview/
future_errc.pass.cpp 29 static_assert(std::future_errc::broken_promise != std::future_errc::future_already_retrieved, "");
30 static_assert(std::future_errc::broken_promise != std::future_errc::promise_already_satisfied, "");
31 static_assert(std::future_errc::broken_promise != std::future_errc::no_state, "");
32 static_assert(std::future_errc::future_already_retrieved != std::future_errc::promise_already_satisfied, "");
33 static_assert(std::future_errc::future_already_retrieved != std::future_errc::no_state, "");
34 static_assert(std::future_errc::promise_already_satisfied != std::future_errc::no_state, "");
36 static_assert(std::future_errc::broken_promise != static_cast<std::future_errc>(0), "");
37 static_assert(std::future_errc::future_already_retrieved != static_cast<std::future_errc>(0), "");
38 static_assert(std::future_errc::promise_already_satisfied != static_cast<std::future_errc>(0), "");
39 static_assert(std::future_errc::no_state != static_cast<std::future_errc>(0), "")
    [all...]
  /external/libcxx/test/std/utilities/meta/meta.logical/
negation.pass.cpp 25 static_assert (!std::negation<std::true_type >::value, "" );
26 static_assert ( std::negation<std::false_type>::value, "" );
28 static_assert (!std::negation_v<std::true_type >, "" );
29 static_assert ( std::negation_v<std::false_type>, "" );
31 static_assert (!std::negation<True >::value, "" );
32 static_assert ( std::negation<False>::value, "" );
34 static_assert (!std::negation_v<True >, "" );
35 static_assert ( std::negation_v<False>, "" );
37 static_assert ( std::negation<std::negation<std::true_type >>::value, "" );
38 static_assert (!std::negation<std::negation<std::false_type>>::value, "" )
    [all...]
  /external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
is_const.pass.cpp 20 static_assert(!std::is_const<T>::value, "");
21 static_assert( std::is_const<const T>::value, "");
22 static_assert(!std::is_const<volatile T>::value, "");
23 static_assert( std::is_const<const volatile T>::value, "");
25 static_assert(!std::is_const_v<T>, "");
26 static_assert( std::is_const_v<const T>, "");
27 static_assert(!std::is_const_v<volatile T>, "");
28 static_assert( std::is_const_v<const volatile T>, "");
46 static_assert(!std::is_const<int&>::value, "");
47 static_assert(!std::is_const<const int&>::value, "")
    [all...]
is_volatile.pass.cpp 20 static_assert(!std::is_volatile<T>::value, "");
21 static_assert(!std::is_volatile<const T>::value, "");
22 static_assert( std::is_volatile<volatile T>::value, "");
23 static_assert( std::is_volatile<const volatile T>::value, "");
25 static_assert(!std::is_volatile_v<T>, "");
26 static_assert(!std::is_volatile_v<const T>, "");
27 static_assert( std::is_volatile_v<volatile T>, "");
28 static_assert( std::is_volatile_v<const volatile T>, "");
46 static_assert(!std::is_volatile<int&>::value, "");
47 static_assert(!std::is_volatile<volatile int&>::value, "")
    [all...]
  /external/libcxx/test/support/test.support/
test_convertible_header.pass.cpp 19 static_assert(test_convertible<ImplicitDefault>(), "Must be convertible");
24 static_assert(!test_convertible<ExplicitDefault>(), "Must not be convertible");
29 static_assert(test_convertible<ImplicitInt, int>(), "Must be convertible");
34 static_assert(!test_convertible<ExplicitInt, int>(), "Must not be convertible");
39 static_assert(test_convertible<ImplicitCopy, ImplicitCopy>(), "Must be convertible");
44 static_assert(!test_convertible<ExplicitCopy, ExplicitCopy>(), "Must not be convertible");
49 static_assert(test_convertible<ImplicitMove, ImplicitMove>(), "Must be convertible");
54 static_assert(!test_convertible<ExplicitMove, ExplicitMove>(), "Must not be convertible");
59 static_assert(test_convertible<ImplicitArgs, int, int, int>(), "Must be convertible");
64 static_assert(!test_convertible<ExplicitArgs, int, int, int>(), "Must not be convertible")
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/optional/optional.comp_with_t/
equal.pass.cpp 41 static_assert ( !(o1 == T(1)), "" );
42 static_assert ( (o2 == T(1)), "" );
43 static_assert ( !(o3 == T(1)), "" );
44 static_assert ( (o3 == T(2)), "" );
45 static_assert ( (o3 == val), "" );
47 static_assert ( !(T(1) == o1), "" );
48 static_assert ( (T(1) == o2), "" );
49 static_assert ( !(T(1) == o3), "" );
50 static_assert ( (T(2) == o3), "" );
51 static_assert ( (val == o3), "" )
    [all...]
not_equal.pass.cpp 41 static_assert ( (o1 != T(1)), "" );
42 static_assert ( !(o2 != T(1)), "" );
43 static_assert ( (o3 != T(1)), "" );
44 static_assert ( !(o3 != T(2)), "" );
45 static_assert ( !(o3 != val), "" );
47 static_assert ( (T(1) != o1), "" );
48 static_assert ( !(T(1) != o2), "" );
49 static_assert ( (T(1) != o3), "" );
50 static_assert ( !(T(2) != o3), "" );
51 static_assert ( !(val != o3), "" )
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/meta/meta.logical/
negation.pass.cpp 27 static_assert (!ex::negation<std::true_type >::value, "" );
28 static_assert ( ex::negation<std::false_type>::value, "" );
30 static_assert (!ex::negation_v<std::true_type >, "" );
31 static_assert ( ex::negation_v<std::false_type>, "" );
33 static_assert (!ex::negation<True >::value, "" );
34 static_assert ( ex::negation<False>::value, "" );
36 static_assert (!ex::negation_v<True >, "" );
37 static_assert ( ex::negation_v<False>, "" );
39 static_assert ( ex::negation<ex::negation<std::true_type >>::value, "" );
40 static_assert (!ex::negation<ex::negation<std::false_type>>::value, "" )
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/propagate_const.relops/
not_equal.pass.cpp 42 static_assert(!(x1_1 != x2_1), "");
43 static_assert(x1_1 != x3_2, "");
51 static_assert(!(p1_1 != p2_1), "");
52 static_assert(p1_1 != p3_2, "");
54 static_assert(!(x1_1 != p1_1), "");
55 static_assert(x1_1 != p3_2, "");
57 static_assert(!(p1_1 != x1_1), "");
58 static_assert(p1_1 != x3_2, "");
60 static_assert(p1_1!=nullptr,"");
61 static_assert(nullptr!=p1_1,"")
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/futures/futures.overview/
future_errc.pass.cpp 29 static_assert(std::future_errc::broken_promise != std::future_errc::future_already_retrieved, "");
30 static_assert(std::future_errc::broken_promise != std::future_errc::promise_already_satisfied, "");
31 static_assert(std::future_errc::broken_promise != std::future_errc::no_state, "");
32 static_assert(std::future_errc::future_already_retrieved != std::future_errc::promise_already_satisfied, "");
33 static_assert(std::future_errc::future_already_retrieved != std::future_errc::no_state, "");
34 static_assert(std::future_errc::promise_already_satisfied != std::future_errc::no_state, "");
36 static_assert(std::future_errc::broken_promise != static_cast<std::future_errc>(0), "");
37 static_assert(std::future_errc::future_already_retrieved != static_cast<std::future_errc>(0), "");
38 static_assert(std::future_errc::promise_already_satisfied != static_cast<std::future_errc>(0), "");
39 static_assert(std::future_errc::no_state != static_cast<std::future_errc>(0), "")
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/meta/meta.logical/
negation.pass.cpp 25 static_assert (!std::negation<std::true_type >::value, "" );
26 static_assert ( std::negation<std::false_type>::value, "" );
28 static_assert (!std::negation_v<std::true_type >, "" );
29 static_assert ( std::negation_v<std::false_type>, "" );
31 static_assert (!std::negation<True >::value, "" );
32 static_assert ( std::negation<False>::value, "" );
34 static_assert (!std::negation_v<True >, "" );
35 static_assert ( std::negation_v<False>, "" );
37 static_assert ( std::negation<std::negation<std::true_type >>::value, "" );
38 static_assert (!std::negation<std::negation<std::false_type>>::value, "" )
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/meta/meta.unary/meta.unary.prop/
is_const.pass.cpp 20 static_assert(!std::is_const<T>::value, "");
21 static_assert( std::is_const<const T>::value, "");
22 static_assert(!std::is_const<volatile T>::value, "");
23 static_assert( std::is_const<const volatile T>::value, "");
25 static_assert(!std::is_const_v<T>, "");
26 static_assert( std::is_const_v<const T>, "");
27 static_assert(!std::is_const_v<volatile T>, "");
28 static_assert( std::is_const_v<const volatile T>, "");
46 static_assert(!std::is_const<int&>::value, "");
47 static_assert(!std::is_const<const int&>::value, "")
    [all...]
is_volatile.pass.cpp 20 static_assert(!std::is_volatile<T>::value, "");
21 static_assert(!std::is_volatile<const T>::value, "");
22 static_assert( std::is_volatile<volatile T>::value, "");
23 static_assert( std::is_volatile<const volatile T>::value, "");
25 static_assert(!std::is_volatile_v<T>, "");
26 static_assert(!std::is_volatile_v<const T>, "");
27 static_assert( std::is_volatile_v<volatile T>, "");
28 static_assert( std::is_volatile_v<const volatile T>, "");
46 static_assert(!std::is_volatile<int&>::value, "");
47 static_assert(!std::is_volatile<volatile int&>::value, "")
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/support/test.support/
test_convertible_header.pass.cpp 19 static_assert(test_convertible<ImplicitDefault>(), "Must be convertible");
24 static_assert(!test_convertible<ExplicitDefault>(), "Must not be convertible");
29 static_assert(test_convertible<ImplicitInt, int>(), "Must be convertible");
34 static_assert(!test_convertible<ExplicitInt, int>(), "Must not be convertible");
39 static_assert(test_convertible<ImplicitCopy, ImplicitCopy>(), "Must be convertible");
44 static_assert(!test_convertible<ExplicitCopy, ExplicitCopy>(), "Must not be convertible");
49 static_assert(test_convertible<ImplicitMove, ImplicitMove>(), "Must be convertible");
54 static_assert(!test_convertible<ExplicitMove, ExplicitMove>(), "Must not be convertible");
59 static_assert(test_convertible<ImplicitArgs, int, int, int>(), "Must be convertible");
64 static_assert(!test_convertible<ExplicitArgs, int, int, int>(), "Must not be convertible")
    [all...]
  /external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/
empty_member.pass.cpp 28 static_assert((sizeof(T) == sizeof(int)), "");
32 static_assert((sizeof(T) == sizeof(int)), "");
36 static_assert((sizeof(T) == sizeof(int)), "");
40 static_assert((sizeof(T) == sizeof(int)), "");
44 static_assert((sizeof(T) == sizeof(int)), "");
  /external/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/
types.pass.cpp 33 static_assert((std::is_convertible<I1,
36 static_assert((std::is_same<I1::iterator_category, std::output_iterator_tag>::value), "");
37 static_assert((std::is_same<I1::value_type, void>::value), "");
38 static_assert((std::is_same<I1::difference_type, void>::value), "");
39 static_assert((std::is_same<I1::pointer, void>::value), "");
40 static_assert((std::is_same<I1::reference, void>::value), "");
42 static_assert((std::is_same<I1::char_type, char>::value), "");
43 static_assert((std::is_same<I1::traits_type, std::char_traits<char> >::value), "");
44 static_assert((std::is_same<I1::streambuf_type, std::streambuf>::value), "");
45 static_assert((std::is_same<I1::ostream_type, std::ostream>::value), "")
    [all...]
  /external/libcxx/test/std/language.support/support.types/byteops/
lshift.pass.cpp 24 static_assert(noexcept(b3 << 2), "" );
26 static_assert(std::to_integer<int>(b1 << 1) == 2, "");
27 static_assert(std::to_integer<int>(b1 << 2) == 4, "");
28 static_assert(std::to_integer<int>(b3 << 4) == 48, "");
29 static_assert(std::to_integer<int>(b3 << 6) == 192, "");
  /external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
dtor.pass.cpp 29 static_assert(std::is_trivially_destructible<
31 static_assert(std::is_trivially_destructible<
33 static_assert(std::is_trivially_destructible<
35 static_assert(!std::is_trivially_destructible<
37 static_assert(!std::is_trivially_destructible<
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/libcxx/utilities/tuple/tuple.tuple/
empty_member.pass.cpp 28 static_assert((sizeof(T) == sizeof(int)), "");
32 static_assert((sizeof(T) == sizeof(int)), "");
36 static_assert((sizeof(T) == sizeof(int)), "");
40 static_assert((sizeof(T) == sizeof(int)), "");
44 static_assert((sizeof(T) == sizeof(int)), "");
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/optional/optional.nullopt/
nullopt_t.pass.cpp 32 static_assert((std::is_class<nullopt_t>::value), "");
33 static_assert((std::is_empty<nullopt_t>::value), "");
34 static_assert((std::is_literal_type<nullopt_t>::value), "");
35 static_assert((!std::is_default_constructible<nullopt_t>::value), "");
37 static_assert(test(nullopt) == 3, "");
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/syserror/header.system_error.synop/
is_error_code_enum_v.pass.cpp 23 static_assert(ex::is_error_code_enum_v<std::io_errc>, "");
25 static_assert(ex::is_error_code_enum_v<std::io_errc> ==
28 static_assert(std::is_same<decltype(ex::is_error_code_enum_v<std::io_errc>),
32 static_assert(!ex::is_error_code_enum_v<int>, "");
34 static_assert(ex::is_error_code_enum_v<int> ==

Completed in 575 milliseconds

<<11121314151617181920>>