/external/clang/test/SemaCXX/ |
underlying_type.cpp | 18 static_assert(is_same_type<char, __underlying_type(f)>::value, 22 static_assert(is_same_type<int, __underlying_type(g)>::value, 26 static_assert(is_same_type<char, decltype(h)>::value, 34 static_assert(is_same_type<underlying_type<f>::type, char>::value, 42 static_assert(is_same_type<underlying_type<foo>::type, unsigned>::value,
|
generic-selection.cpp | 13 static_assert(A<int>::id == 1, "fail"); 14 static_assert(A<float>::id == 2, "fail"); 15 static_assert(A<double, double>::id == 3, "fail"); 44 static_assert(TypeMask<int, long, short>::result == 7, "fail"); 45 static_assert(TypeMask<float, short>::result == 12, "fail"); 46 static_assert(TypeMask<int, float, float>::result == 9, "fail");
|
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/meta/meta.unary/meta.unary.prop/ |
is_standard_layout.pass.cpp | 25 static_assert( std::is_standard_layout<int>::value, ""); 26 static_assert( std::is_standard_layout<int[3]>::value, ""); 27 static_assert(!std::is_standard_layout<int&>::value, ""); 28 static_assert(!std::is_standard_layout<volatile int&>::value, ""); 29 static_assert(( std::is_standard_layout<pair<int, double> >::value), "");
|
is_trivial.pass.cpp | 26 static_assert( std::is_trivial<int>::value, ""); 27 static_assert(!std::is_trivial<int&>::value, ""); 28 static_assert(!std::is_trivial<volatile int&>::value, ""); 29 static_assert( std::is_trivial<A>::value, ""); 30 static_assert(!std::is_trivial<B>::value, "");
|
is_trivially_constructible.pass.cpp | 25 static_assert(( std::is_trivially_constructible<int>::value), ""); 26 static_assert(( std::is_trivially_constructible<int, const int&>::value), ""); 27 static_assert((!std::is_trivially_constructible<A, int>::value), ""); 28 static_assert((!std::is_trivially_constructible<A, int, double>::value), ""); 29 static_assert((!std::is_trivially_constructible<A>::value), "");
|
is_const.pass.cpp | 19 static_assert(!std::is_const<T>::value, ""); 20 static_assert( std::is_const<const T>::value, ""); 21 static_assert(!std::is_const<volatile T>::value, ""); 22 static_assert( std::is_const<const volatile T>::value, ""); 35 static_assert(!std::is_const<int&>::value, ""); 36 static_assert(!std::is_const<const int&>::value, "");
|
is_nothrow_copy_constructible.pass.cpp | 19 static_assert( std::is_nothrow_copy_constructible<T>::value, ""); 20 static_assert( std::is_nothrow_copy_constructible<const T>::value, ""); 26 static_assert(!std::is_nothrow_copy_constructible<T>::value, ""); 27 static_assert(!std::is_nothrow_copy_constructible<const T>::value, ""); 28 static_assert(!std::is_nothrow_copy_constructible<volatile T>::value, ""); 29 static_assert(!std::is_nothrow_copy_constructible<const volatile T>::value, "");
|
is_nothrow_move_constructible.pass.cpp | 19 static_assert( std::is_nothrow_move_constructible<T>::value, ""); 20 static_assert( std::is_nothrow_move_constructible<const T>::value, ""); 26 static_assert(!std::is_nothrow_move_constructible<T>::value, ""); 27 static_assert(!std::is_nothrow_move_constructible<const T>::value, ""); 28 static_assert(!std::is_nothrow_move_constructible<volatile T>::value, ""); 29 static_assert(!std::is_nothrow_move_constructible<const volatile T>::value, "");
|
is_volatile.pass.cpp | 19 static_assert(!std::is_volatile<T>::value, ""); 20 static_assert(!std::is_volatile<const T>::value, ""); 21 static_assert( std::is_volatile<volatile T>::value, ""); 22 static_assert( std::is_volatile<const volatile T>::value, ""); 35 static_assert(!std::is_volatile<int&>::value, ""); 36 static_assert(!std::is_volatile<volatile int&>::value, "");
|
/external/clang/test/CXX/special/class.copy/ |
p15-0x.cpp | 39 static_assert(noexcept(declval<X>()), "noexcept isn't working at all"); 40 static_assert(noexcept(X(declval<X&>())), "copy constructor can't throw"); 41 static_assert(noexcept(X(declval<X>())), "move constructor can't throw");
|
/ndk/sources/cxx-stl/llvm-libc++/test/containers/unord/unord.map/ |
types.pass.cpp | 38 static_assert((std::is_same<C::key_type, char>::value), ""); 39 static_assert((std::is_same<C::mapped_type, short>::value), ""); 40 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); 41 static_assert((std::is_same<C::key_equal, std::equal_to<C::key_type> >::value), ""); 42 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), ""); 43 static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_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), "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/containers/unord/unord.multimap/ |
types.pass.cpp | 38 static_assert((std::is_same<C::key_type, char>::value), ""); 39 static_assert((std::is_same<C::mapped_type, short>::value), ""); 40 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); 41 static_assert((std::is_same<C::key_equal, std::equal_to<C::key_type> >::value), ""); 42 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), ""); 43 static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_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), "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/iterators/stream.iterators/istreambuf.iterator/ |
types.pass.cpp | 33 static_assert((std::is_convertible<I1, 36 static_assert((std::is_same<I1::char_type, char>::value), ""); 37 static_assert((std::is_same<I1::traits_type, std::char_traits<char> >::value), ""); 38 static_assert((std::is_same<I1::int_type, I1::traits_type::int_type>::value), ""); 39 static_assert((std::is_same<I1::streambuf_type, std::streambuf>::value), ""); 40 static_assert((std::is_same<I1::istream_type, std::istream>::value), ""); 43 static_assert((std::is_convertible<I2, 46 static_assert((std::is_same<I2::char_type, wchar_t>::value), ""); 47 static_assert((std::is_same<I2::traits_type, std::char_traits<wchar_t> >::value), ""); 48 static_assert((std::is_same<I2::int_type, I2::traits_type::int_type>::value), "") [all...] |
/external/clang/test/CXX/dcl.decl/dcl.init/ |
p5.cpp | 43 #define static_assert(B, S) typedef int assert_failed[(B) ? 1 : -1]; macro 44 static_assert(__has_trivial_constructor(S), ""); 45 static_assert(__has_trivial_constructor(T), ""); 46 static_assert(__has_trivial_constructor(U), ""); 47 static_assert(!__has_trivial_constructor(V), ""); 48 static_assert(!__has_trivial_constructor(W), "");
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
p8-0x.cpp | 43 static_assert(member_pointer_kind<int (X::*)(int)>::value == 1, ""); 44 static_assert(member_pointer_kind<int (X::*)(int) &>::value == 2, ""); 45 static_assert(member_pointer_kind<int (X::*)(int) &&>::value == 3, ""); 46 static_assert(member_pointer_kind<int (X::*)(int) const>::value == 4, ""); 47 static_assert(member_pointer_kind<int (X::*)(int) const&>::value == 5, ""); 48 static_assert(member_pointer_kind<int (X::*)(int) const&&>::value == 6, "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/array/array.tuple/ |
tuple_element.pass.cpp | 22 static_assert((std::is_same<std::tuple_element<0, C>::type, T>::value), ""); 23 static_assert((std::is_same<std::tuple_element<1, C>::type, T>::value), ""); 24 static_assert((std::is_same<std::tuple_element<2, C>::type, T>::value), ""); 29 static_assert((std::is_same<std::tuple_element<0, C>::type, T>::value), ""); 30 static_assert((std::is_same<std::tuple_element<1, C>::type, T>::value), ""); 31 static_assert((std::is_same<std::tuple_element<2, C>::type, T>::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/depr/depr.c.headers/ |
stddef_h.pass.cpp | 25 static_assert(sizeof(size_t) == sizeof(void*), 27 static_assert(std::is_unsigned<size_t>::value, 29 static_assert(std::is_integral<size_t>::value, 31 static_assert(sizeof(ptrdiff_t) == sizeof(void*), 33 static_assert(std::is_signed<ptrdiff_t>::value, 35 static_assert(std::is_integral<ptrdiff_t>::value,
|
/ndk/sources/cxx-stl/llvm-libc++/test/language.support/support.initlist/ |
types.pass.cpp | 30 static_assert((std::is_same<std::initializer_list<A>::value_type, A>::value), ""); 31 static_assert((std::is_same<std::initializer_list<A>::reference, const A&>::value), ""); 32 static_assert((std::is_same<std::initializer_list<A>::const_reference, const A&>::value), ""); 33 static_assert((std::is_same<std::initializer_list<A>::size_type, std::size_t>::value), ""); 34 static_assert((std::is_same<std::initializer_list<A>::iterator, const A*>::value), ""); 35 static_assert((std::is_same<std::initializer_list<A>::const_iterator, const A*>::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.numeric/locale.nm.put/ |
types.pass.cpp | 26 static_assert((std::is_base_of<std::locale::facet, std::num_put<char> >::value), ""); 27 static_assert((std::is_base_of<std::locale::facet, std::num_put<wchar_t> >::value), ""); 28 static_assert((std::is_same<std::num_put<char>::char_type, char>::value), ""); 29 static_assert((std::is_same<std::num_put<wchar_t>::char_type, wchar_t>::value), ""); 30 static_assert((std::is_same<std::num_put<char>::iter_type, std::ostreambuf_iterator<char> >::value), ""); 31 static_assert((std::is_same<std::num_put<wchar_t>::iter_type, std::ostreambuf_iterator<wchar_t> >::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.numeric/locale.num.get/ |
types.pass.cpp | 26 static_assert((std::is_base_of<std::locale::facet, std::num_get<char> >::value), ""); 27 static_assert((std::is_base_of<std::locale::facet, std::num_get<wchar_t> >::value), ""); 28 static_assert((std::is_same<std::num_get<char>::char_type, char>::value), ""); 29 static_assert((std::is_same<std::num_get<wchar_t>::char_type, wchar_t>::value), ""); 30 static_assert((std::is_same<std::num_get<char>::iter_type, std::istreambuf_iterator<char> >::value), ""); 31 static_assert((std::is_same<std::num_get<wchar_t>::iter_type, std::istreambuf_iterator<wchar_t> >::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.time/locale.time.put/ |
types.pass.cpp | 26 static_assert((std::is_base_of<std::locale::facet, std::time_put<char> >::value), ""); 27 static_assert((std::is_base_of<std::locale::facet, std::time_put<wchar_t> >::value), ""); 28 static_assert((std::is_same<std::time_put<char>::char_type, char>::value), ""); 29 static_assert((std::is_same<std::time_put<wchar_t>::char_type, wchar_t>::value), ""); 30 static_assert((std::is_same<std::time_put<char>::iter_type, std::ostreambuf_iterator<char> >::value), ""); 31 static_assert((std::is_same<std::time_put<wchar_t>::iter_type, std::ostreambuf_iterator<wchar_t> >::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/re/re.traits/ |
types.pass.cpp | 26 static_assert((std::is_same<std::regex_traits<char>::char_type, char>::value), ""); 27 static_assert((std::is_same<std::regex_traits<char>::string_type, std::string>::value), ""); 28 static_assert((std::is_same<std::regex_traits<char>::locale_type, std::locale>::value), ""); 29 static_assert((std::is_same<std::regex_traits<wchar_t>::char_type, wchar_t>::value), ""); 30 static_assert((std::is_same<std::regex_traits<wchar_t>::string_type, std::wstring>::value), ""); 31 static_assert((std::is_same<std::regex_traits<wchar_t>::locale_type, std::locale>::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/meta/meta.trans/meta.trans.other/ |
common_type.pass.cpp | 18 static_assert((std::is_same<std::common_type<int>::type, int>::value), ""); 19 static_assert((std::is_same<std::common_type<char>::type, char>::value), ""); 21 static_assert((std::is_same<std::common_type<double, char>::type, double>::value), ""); 22 static_assert((std::is_same<std::common_type<short, char>::type, int>::value), ""); 24 static_assert((std::is_same<std::common_type<double, char, long long>::type, double>::value), ""); 25 static_assert((std::is_same<std::common_type<unsigned, char, long long>::type, long long>::value), "");
|
/external/clang/test/PCH/ |
cxx11-exception-spec.cpp | 15 static_assert(!noexcept(f<false>()), ""); 16 static_assert(noexcept(f<true>()), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/containers/container.adaptors/queue/queue.defn/ |
types.pass.cpp | 49 static_assert((std::is_same<std::queue<int>::container_type, std::deque<int> >::value), ""); 50 static_assert((std::is_same<std::queue<double, std::vector<int> >::container_type, std::vector<int> >::value), ""); 51 static_assert((std::is_same<std::queue<double, std::vector<int> >::value_type, int>::value), ""); 52 static_assert((std::is_same<std::queue<int>::reference, std::deque<int>::reference>::value), ""); 53 static_assert((std::is_same<std::queue<int>::const_reference, std::deque<int>::const_reference>::value), ""); 54 static_assert((std::is_same<std::queue<int>::size_type, std::deque<int>::size_type>::value), ""); 55 static_assert((std::uses_allocator<std::queue<int>, std::allocator<int> >::value), ""); 56 static_assert((!std::uses_allocator<std::queue<int, C>, std::allocator<int> >::value), "");
|