/external/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/ |
H A D | is_final.pass.cpp | 25 static_assert( std::is_final<T>::value, ""); 26 static_assert( std::is_final<const T>::value, ""); 27 static_assert( std::is_final<volatile T>::value, ""); 28 static_assert( std::is_final<const volatile T>::value, ""); 34 static_assert(!std::is_final<T>::value, ""); 35 static_assert(!std::is_final<const T>::value, ""); 36 static_assert(!std::is_final<volatile T>::value, ""); 37 static_assert(!std::is_final<const volatile T>::value, "");
|
H A D | is_nothrow_default_constructible.pass.cpp | 19 static_assert( std::is_nothrow_default_constructible<T>::value, ""); 20 static_assert( std::is_nothrow_default_constructible<const T>::value, ""); 21 static_assert( std::is_nothrow_default_constructible<volatile T>::value, ""); 22 static_assert( std::is_nothrow_default_constructible<const volatile T>::value, ""); 28 static_assert(!std::is_nothrow_default_constructible<T>::value, ""); 29 static_assert(!std::is_nothrow_default_constructible<const T>::value, ""); 30 static_assert(!std::is_nothrow_default_constructible<volatile T>::value, ""); 31 static_assert(!std::is_nothrow_default_constructible<const volatile T>::value, "");
|
H A D | 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, "");
|
H A D | 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, "");
|
H A D | 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, "");
|
H A D | 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, "");
|
H A D | 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, "");
|
H A D | 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, "");
|
H A D | 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/libcxx/test/utilities/meta/meta.unary.prop.query/ |
H A D | extent.pass.cpp | 19 static_assert((std::extent<T>::value == A), ""); 20 static_assert((std::extent<const T>::value == A), ""); 21 static_assert((std::extent<volatile T>::value == A), ""); 22 static_assert((std::extent<const volatile T>::value == A), ""); 28 static_assert((std::extent<T, 1>::value == A), ""); 29 static_assert((std::extent<const T, 1>::value == A), ""); 30 static_assert((std::extent<volatile T, 1>::value == A), ""); 31 static_assert((std::extent<const volatile T, 1>::value == A), "");
|
/external/libcxx/test/utilities/optional/optional.object/optional.object.observe/ |
H A D | bool.pass.cpp | 25 static_assert(!opt, ""); 29 static_assert(opt, "");
|
/external/libcxx/test/utilities/utility/pairs/pairs.pair/ |
H A D | types.pass.cpp | 24 static_assert((std::is_same<P::first_type, float>::value), ""); 25 static_assert((std::is_same<P::second_type, short*>::value), "");
|
/external/libcxx/test/atomics/atomics.types.generic/ |
H A D | 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((st [all...] |
/external/libcxx/test/containers/associative/multiset/ |
H A D | 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((st [all...] |
/external/libcxx/test/containers/associative/set/ |
H A D | 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((st [all...] |
/external/libcxx/test/containers/sequences/deque/ |
H A D | 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((st [all...] |
/external/libcxx/test/containers/unord/unord.multiset/ |
H A D | 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((st [all...] |
/external/libcxx/test/containers/unord/unord.set/ |
H A D | 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((st [all...] |
/external/libcxx/test/depr/depr.c.headers/ |
H A D | string_h.pass.cpp | 26 static_assert((std::is_same<decltype(memcpy(vp, vpc, s)), void*>::value), ""); 27 static_assert((std::is_same<decltype(memmove(vp, vpc, s)), void*>::value), ""); 28 static_assert((std::is_same<decltype(strcpy(cp, cpc)), char*>::value), ""); 29 static_assert((std::is_same<decltype(strncpy(cp, cpc, s)), char*>::value), ""); 30 static_assert((std::is_same<decltype(strcat(cp, cpc)), char*>::value), ""); 31 static_assert((std::is_same<decltype(strncat(cp, cpc, s)), char*>::value), ""); 32 static_assert((std::is_same<decltype(memcmp(vpc, vpc, s)), int>::value), ""); 33 static_assert((std::is_same<decltype(strcmp(cpc, cpc)), int>::value), ""); 34 static_assert((std::is_same<decltype(strncmp(cpc, cpc, s)), int>::value), ""); 35 static_assert((st [all...] |
/external/libcxx/test/strings/c.strings/ |
H A D | cstring.pass.cpp | 26 static_assert((std::is_same<decltype(std::memcpy(vp, vpc, s)), void*>::value), ""); 27 static_assert((std::is_same<decltype(std::memmove(vp, vpc, s)), void*>::value), ""); 28 static_assert((std::is_same<decltype(std::strcpy(cp, cpc)), char*>::value), ""); 29 static_assert((std::is_same<decltype(std::strncpy(cp, cpc, s)), char*>::value), ""); 30 static_assert((std::is_same<decltype(std::strcat(cp, cpc)), char*>::value), ""); 31 static_assert((std::is_same<decltype(std::strncat(cp, cpc, s)), char*>::value), ""); 32 static_assert((std::is_same<decltype(std::memcmp(vpc, vpc, s)), int>::value), ""); 33 static_assert((std::is_same<decltype(std::strcmp(cpc, cpc)), int>::value), ""); 34 static_assert((std::is_same<decltype(std::strncmp(cpc, cpc, s)), int>::value), ""); 35 static_assert((st [all...] |
/external/clang/test/SemaCXX/ |
H A D | member-pointer-ms.cpp | 6 // 2012, which supports C++11 and static_assert. It should pass for both 64-bit 89 static_assert(sizeof(int IncSingle::*) == kSingleDataSize, ""); 90 static_assert(sizeof(int IncMultiple::*) == kMultipleDataSize, ""); 91 static_assert(sizeof(int IncVirtual::*) == kVirtualDataSize, ""); 92 static_assert(sizeof(void (IncSingle::*)()) == kSingleFunctionSize, ""); 93 static_assert(sizeof(void (IncMultiple::*)()) == kMultipleFunctionSize, ""); 94 static_assert(sizeof(void (IncVirtual::*)()) == kVirtualFunctionSize, ""); 96 static_assert(__alignof(int IncSingle::*) == kSingleDataAlign, ""); 97 static_assert(__alignof(int IncMultiple::*) == kMultipleDataAlign, ""); 98 static_assert(__aligno [all...] |
H A D | anonymous-union-cxx11.cpp | 19 static_assert(true, "");
|
H A D | constexpr-backtrace-limit.cpp | 34 static_assert(recurse(5), "");
|
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
H A D | p7.cpp | 7 static_assert(alignof(X<char, int, sizeof(int)>) == alignof(int), ""); 8 static_assert(alignof(X<int, char, 1>) == alignof(int), ""); 15 static_assert(alignof(Y<char, int, sizeof(int)>) == alignof(int), ""); 16 static_assert(alignof(Y<int, char, 1>) == alignof(int), ""); // expected-note {{in instantiation of}}
|
/external/clang/test/PCH/ |
H A D | cxx-static_assert.cpp | 12 static_assert(N == 2, "N is not 2!"); 17 // expected-error@12 {{static_assert failed "N is not 2!"}}
|