HomeSort by relevance Sort by last modified time
    Searched full:static_assert (Results 76 - 100 of 1136) sorted by null

1 2 34 5 6 7 8 91011>>

  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/
is_pod.pass.cpp 19 static_assert( std::is_pod<T>::value, "");
20 static_assert( std::is_pod<const T>::value, "");
21 static_assert( std::is_pod<volatile T>::value, "");
22 static_assert( std::is_pod<const volatile T>::value, "");
28 static_assert(!std::is_pod<T>::value, "");
29 static_assert(!std::is_pod<const T>::value, "");
30 static_assert(!std::is_pod<volatile T>::value, "");
31 static_assert(!std::is_pod<const volatile T>::value, "");
is_signed.pass.cpp 19 static_assert( std::is_signed<T>::value, "");
20 static_assert( std::is_signed<const T>::value, "");
21 static_assert( std::is_signed<volatile T>::value, "");
22 static_assert( std::is_signed<const volatile T>::value, "");
28 static_assert(!std::is_signed<T>::value, "");
29 static_assert(!std::is_signed<const T>::value, "");
30 static_assert(!std::is_signed<volatile T>::value, "");
31 static_assert(!std::is_signed<const volatile T>::value, "");
is_standard_layout.pass.cpp 19 static_assert( std::is_standard_layout<T>::value, "");
20 static_assert( std::is_standard_layout<const T>::value, "");
21 static_assert( std::is_standard_layout<volatile T>::value, "");
22 static_assert( std::is_standard_layout<const volatile T>::value, "");
28 static_assert(!std::is_standard_layout<T>::value, "");
29 static_assert(!std::is_standard_layout<const T>::value, "");
30 static_assert(!std::is_standard_layout<volatile T>::value, "");
31 static_assert(!std::is_standard_layout<const volatile T>::value, "");
is_trivial.pass.cpp 19 static_assert( std::is_trivial<T>::value, "");
20 static_assert( std::is_trivial<const T>::value, "");
21 static_assert( std::is_trivial<volatile T>::value, "");
22 static_assert( std::is_trivial<const volatile T>::value, "");
28 static_assert(!std::is_trivial<T>::value, "");
29 static_assert(!std::is_trivial<const T>::value, "");
30 static_assert(!std::is_trivial<volatile T>::value, "");
31 static_assert(!std::is_trivial<const volatile T>::value, "");
is_trivialially_copyable.pass.cpp 20 static_assert( std::is_trivially_copyable<T>::value, "");
21 static_assert( std::is_trivially_copyable<const T>::value, "");
22 static_assert( std::is_trivially_copyable<volatile T>::value, "");
23 static_assert( std::is_trivially_copyable<const volatile T>::value, "");
29 static_assert(!std::is_trivially_copyable<T>::value, "");
30 static_assert(!std::is_trivially_copyable<const T>::value, "");
31 static_assert(!std::is_trivially_copyable<volatile T>::value, "");
32 static_assert(!std::is_trivially_copyable<const volatile T>::value, "");
is_trivially_default_constructible.pass.cpp 19 static_assert( std::is_trivially_default_constructible<T>::value, "");
20 static_assert( std::is_trivially_default_constructible<const T>::value, "");
21 static_assert( std::is_trivially_default_constructible<volatile T>::value, "");
22 static_assert( std::is_trivially_default_constructible<const volatile T>::value, "");
28 static_assert(!std::is_trivially_default_constructible<T>::value, "");
29 static_assert(!std::is_trivially_default_constructible<const T>::value, "");
30 static_assert(!std::is_trivially_default_constructible<volatile T>::value, "");
31 static_assert(!std::is_trivially_default_constructible<const volatile T>::value, "");
is_trivially_destructible.pass.cpp 19 static_assert( std::is_trivially_destructible<T>::value, "");
20 static_assert( std::is_trivially_destructible<const T>::value, "");
21 static_assert( std::is_trivially_destructible<volatile T>::value, "");
22 static_assert( std::is_trivially_destructible<const volatile T>::value, "");
28 static_assert(!std::is_trivially_destructible<T>::value, "");
29 static_assert(!std::is_trivially_destructible<const T>::value, "");
30 static_assert(!std::is_trivially_destructible<volatile T>::value, "");
31 static_assert(!std::is_trivially_destructible<const volatile T>::value, "");
is_unsigned.pass.cpp 19 static_assert( std::is_unsigned<T>::value, "");
20 static_assert( std::is_unsigned<const T>::value, "");
21 static_assert( std::is_unsigned<volatile T>::value, "");
22 static_assert( std::is_unsigned<const volatile T>::value, "");
28 static_assert(!std::is_unsigned<T>::value, "");
29 static_assert(!std::is_unsigned<const T>::value, "");
30 static_assert(!std::is_unsigned<volatile T>::value, "");
31 static_assert(!std::is_unsigned<const volatile T>::value, "");
  /external/clang/test/PCH/
cxx1y-default-initializer.cpp 23 static_assert(A{}.z == 3, "");
24 static_assert(A{1}.z == 4, "");
25 static_assert(A{.y = 5}.z == 5, ""); // expected-warning {{C99}}
26 static_assert(A{3, .y = 1}.z == 4, ""); // expected-warning {{C99}}
27 static_assert(make<int>().z == 3, "");
28 static_assert(make<int>(12).z == 15, "");
cxx_exprs.cpp 33 static_assert(true_value, "true_value is true");
34 static_assert(!false_value, "false_value is false");
44 static_assert(char_value == 97, "char_value is correct");
45 static_assert(wchar_t_value == 305, "wchar_t_value is correct");
46 static_assert(char16_t_value == 231, "char16_t_value is correct");
47 static_assert(char32_t_value == 8706, "char32_t_value is correct");
  /external/clang/test/Sema/
static-assert.c 6 // expected-error@-2 {{static_assert expression is not an integral constant expression}}
10 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}}
14 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}}
17 _Static_assert(1, invalid); // expected-error {{expected string literal for diagnostic message in static_assert}}
22 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}}
41 typedef UNION(char, short) U3; // expected-error {{static_assert failed "type size mismatch"}}
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/
types.pass.cpp 40 static_assert((std::is_same<C::key_type, char>::value), "");
41 static_assert((std::is_same<C::mapped_type, short>::value), "");
42 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), "");
43 static_assert((std::is_same<C::key_equal, std::equal_to<C::key_type> >::value), "");
44 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), "");
45 static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value), "");
46 static_assert((std::is_same<C::reference, C::value_type&>::value), "");
47 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), "");
48 static_assert((std::is_same<C::pointer, C::value_type*>::value), "");
49 static_assert((std::is_same<C::const_pointer, const C::value_type*>::value), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/
types.pass.cpp 40 static_assert((std::is_same<C::key_type, char>::value), "");
41 static_assert((std::is_same<C::mapped_type, short>::value), "");
42 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), "");
43 static_assert((std::is_same<C::key_equal, std::equal_to<C::key_type> >::value), "");
44 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), "");
45 static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value), "");
46 static_assert((std::is_same<C::reference, C::value_type&>::value), "");
47 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), "");
48 static_assert((std::is_same<C::pointer, C::value_type*>::value), "");
49 static_assert((std::is_same<C::const_pointer, const C::value_type*>::value), "")
    [all...]
  /ndk/tests/build/wchar_t-size/jni/
test_8bit_cplusplus_stdc_limit_macros.cpp 19 #define STATIC_ASSERT(condition) \
23 STATIC_ASSERT(sizeof(__WCHAR_TYPE__) == 1);
25 STATIC_ASSERT(sizeof(__WCHAR_TYPE__) == 4);
30 STATIC_ASSERT(sizeof(wchar_t) == 4);
34 STATIC_ASSERT(WCHAR_MIN == 0x80000000);
35 STATIC_ASSERT(WCHAR_MAX == 0x7fffffff);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits/
default.pass.cpp 28 static_assert(std::numeric_limits<A>::is_specialized == false,
33 static_assert(std::numeric_limits<A>::digits == 0,
35 static_assert(std::numeric_limits<A>::digits10 == 0,
37 static_assert(std::numeric_limits<A>::max_digits10 == 0,
39 static_assert(std::numeric_limits<A>::is_signed == false,
41 static_assert(std::numeric_limits<A>::is_integer == false,
43 static_assert(std::numeric_limits<A>::is_exact == false,
45 static_assert(std::numeric_limits<A>::radix == 0,
49 static_assert(std::numeric_limits<A>::min_exponent == 0,
51 static_assert(std::numeric_limits<A>::min_exponent10 == 0
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/stream.buffers/streambuf/
types.pass.cpp 28 static_assert((std::is_same<std::streambuf::char_type, char>::value), "");
29 static_assert((std::is_same<std::streambuf::traits_type, std::char_traits<char> >::value), "");
30 static_assert((std::is_same<std::streambuf::int_type, std::char_traits<char>::int_type>::value), "");
31 static_assert((std::is_same<std::streambuf::pos_type, std::char_traits<char>::pos_type>::value), "");
32 static_assert((std::is_same<std::streambuf::off_type, std::char_traits<char>::off_type>::value), "");
34 static_assert((std::is_same<std::wstreambuf::char_type, wchar_t>::value), "");
35 static_assert((std::is_same<std::wstreambuf::traits_type, std::char_traits<wchar_t> >::value), "");
36 static_assert((std::is_same<std::wstreambuf::int_type, std::char_traits<wchar_t>::int_type>::value), "");
37 static_assert((std::is_same<std::wstreambuf::pos_type, std::char_traits<wchar_t>::pos_type>::value), "");
38 static_assert((std::is_same<std::wstreambuf::off_type, std::char_traits<wchar_t>::off_type>::value), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/stream.iterators/ostreambuf.iterator/
types.pass.cpp 30 static_assert((std::is_convertible<I1,
32 static_assert((std::is_same<I1::char_type, char>::value), "");
33 static_assert((std::is_same<I1::traits_type, std::char_traits<char> >::value), "");
34 static_assert((std::is_same<I1::streambuf_type, std::streambuf>::value), "");
35 static_assert((std::is_same<I1::ostream_type, std::ostream>::value), "");
38 static_assert((std::is_convertible<I2,
40 static_assert((std::is_same<I2::char_type, wchar_t>::value), "");
41 static_assert((std::is_same<I2::traits_type, std::char_traits<wchar_t> >::value), "");
42 static_assert((std::is_same<I2::streambuf_type, std::wstreambuf>::value), "");
43 static_assert((std::is_same<I2::ostream_type, std::wostream>::value), "")
    [all...]
  /external/clang/test/SemaCXX/
nullptr.cpp 96 static_assert(is_same<decltype(g(nullptr)), void*>::value, "");
117 static_assert(__is_scalar(nullptr_t), "");
118 static_assert(__is_pod(nullptr_t), "");
119 static_assert(sizeof(nullptr_t) == sizeof(void*), "");
121 static_assert(!(nullptr < nullptr), "");
122 static_assert(!(nullptr > nullptr), "");
123 static_assert( nullptr <= nullptr, "");
124 static_assert( nullptr >= nullptr, "");
125 static_assert( nullptr == nullptr, "");
126 static_assert(!(nullptr != nullptr), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/atomics/atomics.types.generic/
cstdint_typedefs.pass.cpp 43 static_assert((std::is_same<std::atomic< std::int_least8_t>, std::atomic_int_least8_t>::value), "");
44 static_assert((std::is_same<std::atomic< std::uint_least8_t>, std::atomic_uint_least8_t>::value), "");
45 static_assert((std::is_same<std::atomic< std::int_least16_t>, std::atomic_int_least16_t>::value), "");
46 static_assert((std::is_same<std::atomic<std::uint_least16_t>, std::atomic_uint_least16_t>::value), "");
47 static_assert((std::is_same<std::atomic< std::int_least32_t>, std::atomic_int_least32_t>::value), "");
48 static_assert((std::is_same<std::atomic<std::uint_least32_t>, std::atomic_uint_least32_t>::value), "");
49 static_assert((std::is_same<std::atomic< std::int_least64_t>, std::atomic_int_least64_t>::value), "");
50 static_assert((std::is_same<std::atomic<std::uint_least64_t>, std::atomic_uint_least64_t>::value), "");
52 static_assert((std::is_same<std::atomic< std::int_fast8_t>, std::atomic_int_fast8_t>::value), "");
53 static_assert((std::is_same<std::atomic< std::uint_fast8_t>, std::atomic_uint_fast8_t>::value), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/
types.pass.cpp 40 static_assert((std::is_same<std::map<int, double>::key_type, int>::value), "");
41 static_assert((std::is_same<std::map<int, double>::mapped_type, double>::value), "");
42 static_assert((std::is_same<std::map<int, double>::value_type, std::pair<const int, double> >::value), "");
43 static_assert((std::is_same<std::map<int, double>::key_compare, std::less<int> >::value), "");
44 static_assert((std::is_same<std::map<int, double>::allocator_type, std::allocator<std::pair<const int, double> > >::value), "");
45 static_assert((std::is_same<std::map<int, double>::reference, std::pair<const int, double>&>::value), "");
46 static_assert((std::is_same<std::map<int, double>::const_reference, const std::pair<const int, double>&>::value), "");
47 static_assert((std::is_same<std::map<int, double>::pointer, std::pair<const int, double>*>::value), "");
48 static_assert((std::is_same<std::map<int, double>::const_pointer, const std::pair<const int, double>*>::value), "");
49 static_assert((std::is_same<std::map<int, double>::size_type, std::size_t>::value), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multimap/
types.pass.cpp 40 static_assert((std::is_same<std::multimap<int, double>::key_type, int>::value), "");
41 static_assert((std::is_same<std::multimap<int, double>::mapped_type, double>::value), "");
42 static_assert((std::is_same<std::multimap<int, double>::value_type, std::pair<const int, double> >::value), "");
43 static_assert((std::is_same<std::multimap<int, double>::key_compare, std::less<int> >::value), "");
44 static_assert((std::is_same<std::multimap<int, double>::allocator_type, std::allocator<std::pair<const int, double> > >::value), "");
45 static_assert((std::is_same<std::multimap<int, double>::reference, std::pair<const int, double>&>::value), "");
46 static_assert((std::is_same<std::multimap<int, double>::const_reference, const std::pair<const int, double>&>::value), "");
47 static_assert((std::is_same<std::multimap<int, double>::pointer, std::pair<const int, double>*>::value), "");
48 static_assert((std::is_same<std::multimap<int, double>::const_pointer, const std::pair<const int, double>*>::value), "");
49 static_assert((std::is_same<std::multimap<int, double>::size_type, std::size_t>::value), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multiset/
types.pass.cpp 40 static_assert((std::is_same<std::multiset<int>::key_type, int>::value), "");
41 static_assert((std::is_same<std::multiset<int>::value_type, int>::value), "");
42 static_assert((std::is_same<std::multiset<int>::key_compare, std::less<int> >::value), "");
43 static_assert((std::is_same<std::multiset<int>::value_compare, std::less<int> >::value), "");
44 static_assert((std::is_same<std::multiset<int>::allocator_type, std::allocator<int> >::value), "");
45 static_assert((std::is_same<std::multiset<int>::reference, int&>::value), "");
46 static_assert((std::is_same<std::multiset<int>::const_reference, const int&>::value), "");
47 static_assert((std::is_same<std::multiset<int>::pointer, int*>::value), "");
48 static_assert((std::is_same<std::multiset<int>::const_pointer, const int*>::value), "");
49 static_assert((std::is_same<std::multiset<int>::size_type, std::size_t>::value), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/set/
types.pass.cpp 40 static_assert((std::is_same<std::set<int>::key_type, int>::value), "");
41 static_assert((std::is_same<std::set<int>::value_type, int>::value), "");
42 static_assert((std::is_same<std::set<int>::key_compare, std::less<int> >::value), "");
43 static_assert((std::is_same<std::set<int>::value_compare, std::less<int> >::value), "");
44 static_assert((std::is_same<std::set<int>::allocator_type, std::allocator<int> >::value), "");
45 static_assert((std::is_same<std::set<int>::reference, int&>::value), "");
46 static_assert((std::is_same<std::set<int>::const_reference, const int&>::value), "");
47 static_assert((std::is_same<std::set<int>::pointer, int*>::value), "");
48 static_assert((std::is_same<std::set<int>::const_pointer, const int*>::value), "");
49 static_assert((std::is_same<std::set<int>::size_type, std::size_t>::value), "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/
types.pass.cpp 46 static_assert((std::is_same<typename C::value_type, T>::value), "");
47 static_assert((std::is_same<typename C::value_type, typename Allocator::value_type>::value), "");
48 static_assert((std::is_same<typename C::allocator_type, Allocator>::value), "");
49 static_assert((std::is_same<typename C::size_type, typename Allocator::size_type>::value), "");
50 static_assert((std::is_same<typename C::difference_type, typename Allocator::difference_type>::value), "");
51 static_assert((std::is_same<typename C::reference, typename Allocator::reference>::value), "");
52 static_assert((std::is_same<typename C::const_reference, typename Allocator::const_reference>::value), "");
53 static_assert((std::is_same<typename C::pointer, typename Allocator::pointer>::value), "");
54 static_assert((std::is_same<typename C::const_pointer, typename Allocator::const_pointer>::value), "");
55 static_assert((std::is_same
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multiset/
types.pass.cpp 39 static_assert((std::is_same<C::value_type, short>::value), "");
40 static_assert((std::is_same<C::key_type, short>::value), "");
41 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), "");
42 static_assert((std::is_same<C::key_equal, std::equal_to<C::key_type> >::value), "");
43 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), "");
44 static_assert((std::is_same<C::reference, C::value_type&>::value), "");
45 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), "");
46 static_assert((std::is_same<C::pointer, C::value_type*>::value), "");
47 static_assert((std::is_same<C::const_pointer, const C::value_type*>::value), "");
48 static_assert((std::is_same<C::size_type, std::size_t>::value), "")
    [all...]

Completed in 516 milliseconds

1 2 34 5 6 7 8 91011>>