/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.unary/meta.unary.cat/ |
enum.pass.cpp | 19 static_assert(!std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert(!std::is_floating_point<T>::value, ""); 22 static_assert(!std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert(!std::is_lvalue_reference<T>::value, ""); 25 static_assert(!std::is_rvalue_reference<T>::value, ""); 26 static_assert(!std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert( std::is_enum<T>::value, "") [all...] |
floating_point.pass.cpp | 19 static_assert(!std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert( std::is_floating_point<T>::value, ""); 22 static_assert(!std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert(!std::is_lvalue_reference<T>::value, ""); 25 static_assert(!std::is_rvalue_reference<T>::value, ""); 26 static_assert(!std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert(!std::is_enum<T>::value, "") [all...] |
lvalue_ref.pass.cpp | 19 static_assert(!std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert(!std::is_floating_point<T>::value, ""); 22 static_assert(!std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert( std::is_lvalue_reference<T>::value, ""); 25 static_assert(!std::is_rvalue_reference<T>::value, ""); 26 static_assert(!std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert(!std::is_enum<T>::value, "") [all...] |
member_object_pointer.pass.cpp | 19 static_assert(!std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert(!std::is_floating_point<T>::value, ""); 22 static_assert(!std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert(!std::is_lvalue_reference<T>::value, ""); 25 static_assert(!std::is_rvalue_reference<T>::value, ""); 26 static_assert( std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert(!std::is_enum<T>::value, "") [all...] |
rvalue_ref.pass.cpp | 19 static_assert(!std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert(!std::is_floating_point<T>::value, ""); 22 static_assert(!std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert(!std::is_lvalue_reference<T>::value, ""); 25 static_assert( std::is_rvalue_reference<T>::value, ""); 26 static_assert(!std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert(!std::is_enum<T>::value, "") [all...] |
union.pass.cpp | 19 static_assert(!std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert(!std::is_floating_point<T>::value, ""); 22 static_assert(!std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert(!std::is_lvalue_reference<T>::value, ""); 25 static_assert(!std::is_rvalue_reference<T>::value, ""); 26 static_assert(!std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert(!std::is_enum<T>::value, "") [all...] |
void.pass.cpp | 19 static_assert( std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert(!std::is_floating_point<T>::value, ""); 22 static_assert(!std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert(!std::is_lvalue_reference<T>::value, ""); 25 static_assert(!std::is_rvalue_reference<T>::value, ""); 26 static_assert(!std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert(!std::is_enum<T>::value, "") [all...] |
array.pass.cpp | 19 static_assert(!std::is_void<T>::value, ""); 20 static_assert(!std::is_integral<T>::value, ""); 21 static_assert(!std::is_floating_point<T>::value, ""); 22 static_assert( std::is_array<T>::value, ""); 23 static_assert(!std::is_pointer<T>::value, ""); 24 static_assert(!std::is_lvalue_reference<T>::value, ""); 25 static_assert(!std::is_rvalue_reference<T>::value, ""); 26 static_assert(!std::is_member_object_pointer<T>::value, ""); 27 static_assert(!std::is_member_function_pointer<T>::value, ""); 28 static_assert(!std::is_enum<T>::value, "") [all...] |
/ndk/tests/build/wchar_t-size/jni/ |
test_default.c | 13 #define STATIC_ASSERT(condition) \ 16 STATIC_ASSERT(sizeof(wchar_t) == 4); 19 STATIC_ASSERT(WCHAR_MIN == 0U); 20 STATIC_ASSERT(WCHAR_MAX == 2*2147483647U + 1U); 22 STATIC_ASSERT(WCHAR_MIN == -1-2147483647); 23 STATIC_ASSERT(WCHAR_MAX == 2147483647);
|
test_8bit_cplusplus.cpp | 17 #define STATIC_ASSERT(condition) \ 21 STATIC_ASSERT(sizeof(__WCHAR_TYPE__) == 1); 23 STATIC_ASSERT(sizeof(__WCHAR_TYPE__) == 4); 28 STATIC_ASSERT(sizeof(wchar_t) == 4); 34 STATIC_ASSERT(WCHAR_MIN == 0); 35 STATIC_ASSERT(WCHAR_MAX == 255); 37 STATIC_ASSERT(WCHAR_MIN == 0x80000000); 38 STATIC_ASSERT(WCHAR_MAX == 0x7fffffff);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/ |
stdlib_h.pass.cpp | 42 static_assert((std::is_same<decltype(atof("")), double>::value), ""); 43 static_assert((std::is_same<decltype(atoi("")), int>::value), ""); 44 static_assert((std::is_same<decltype(atol("")), long>::value), ""); 45 static_assert((std::is_same<decltype(atoll("")), long long>::value), ""); 46 static_assert((std::is_same<decltype(getenv("")), char*>::value), ""); 47 static_assert((std::is_same<decltype(strtod("", endptr)), double>::value), ""); 48 static_assert((std::is_same<decltype(strtof("", endptr)), float>::value), ""); 49 static_assert((std::is_same<decltype(strtold("", endptr)), long double>::value), ""); 50 static_assert((std::is_same<decltype(strtol("", endptr,0)), long>::value), ""); 51 static_assert((std::is_same<decltype(strtoll("", endptr,0)), long long>::value), "") [all...] |
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((std::is_same<decltype(strcoll(cpc, cpc)), int>::value), "") [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
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/SemaCXX/ |
decltype-this.cpp | 13 void f() { static_assert(is_same<decltype(this), S*>::value, ""); } 14 void g() const { static_assert(is_same<decltype(this), const S*>::value, ""); } 15 void h() volatile { static_assert(is_same<decltype(this), volatile S*>::value, ""); } 16 void i() const volatile { static_assert(is_same<decltype(this), const volatile S*>::value, ""); }
|
cxx1y-initializer-aggregates.cpp | 8 static_assert(u1.d == 4.0, ""); 9 static_assert(u2.d == 4.0, ""); 10 static_assert(u3.c == 'x', ""); 24 static_assert(a1.d == 4.0, ""); 25 static_assert(a2.m == 24, ""); 26 static_assert(a2.d == 4.0, ""); 27 static_assert(a3.c == 3, ""); 28 static_assert(a3.d == 4.0, ""); // expected-error {{constant expression}} expected-note {{active member 'c'}} 29 static_assert(a4.d == 3.0, ""); 39 static_assert(b2.m == 10, "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/c.strings/ |
cwchar.pass.cpp | 45 static_assert((std::is_same<decltype(std::fwprintf(fp, L"")), int>::value), ""); 46 static_assert((std::is_same<decltype(std::fwscanf(fp, L"")), int>::value), ""); 47 static_assert((std::is_same<decltype(std::swprintf(ws, s, L"")), int>::value), ""); 48 static_assert((std::is_same<decltype(std::swscanf(L"", L"")), int>::value), ""); 49 static_assert((std::is_same<decltype(std::vfwprintf(fp, L"", va)), int>::value), ""); 50 static_assert((std::is_same<decltype(std::vfwscanf(fp, L"", va)), int>::value), ""); 51 static_assert((std::is_same<decltype(std::vswprintf(ws, s, L"", va)), int>::value), ""); 52 static_assert((std::is_same<decltype(std::vswscanf(L"", L"", va)), int>::value), ""); 53 static_assert((std::is_same<decltype(std::vwprintf(L"", va)), int>::value), ""); 54 static_assert((std::is_same<decltype(std::vwscanf(L"", va)), int>::value), "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/c.files/ |
cstdio.pass.cpp | 91 static_assert((std::is_same<decltype(std::remove("")), int>::value), ""); 92 static_assert((std::is_same<decltype(std::rename("","")), int>::value), ""); 93 static_assert((std::is_same<decltype(std::tmpfile()), std::FILE*>::value), ""); 94 static_assert((std::is_same<decltype(std::tmpnam(cp)), char*>::value), ""); 95 static_assert((std::is_same<decltype(std::fclose(fp)), int>::value), ""); 96 static_assert((std::is_same<decltype(std::fflush(fp)), int>::value), ""); 97 static_assert((std::is_same<decltype(std::fopen("", "")), std::FILE*>::value), ""); 98 static_assert((std::is_same<decltype(std::freopen("", "", fp)), std::FILE*>::value), ""); 99 static_assert((std::is_same<decltype(std::setbuf(fp,cp)), void>::value), ""); 100 static_assert((std::is_same<decltype(std::vfprintf(fp,"",va)), int>::value), "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.rel/ |
is_convertible.pass.cpp | 19 static_assert((std::is_convertible<T, U>::value), ""); 20 static_assert((std::is_convertible<const T, U>::value), ""); 21 static_assert((std::is_convertible<T, const U>::value), ""); 22 static_assert((std::is_convertible<const T, const U>::value), ""); 28 static_assert((!std::is_convertible<T, U>::value), ""); 29 static_assert((!std::is_convertible<const T, U>::value), ""); 30 static_assert((!std::is_convertible<T, const U>::value), ""); 31 static_assert((!std::is_convertible<const T, const U>::value), ""); 96 static_assert((!std::is_convertible<Array, Array&>::value), ""); 97 static_assert(( std::is_convertible<Array, const Array&>::value), "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/forward/ |
forward.pass.cpp | 43 static_assert(sizeof(test(std::forward<A&>(a))) == 1, ""); 44 static_assert(sizeof(test(std::forward<A>(a))) == 4, ""); 45 static_assert(sizeof(test(std::forward<A>(source()))) == 4, ""); 47 static_assert(sizeof(test(std::forward<const A&>(a))) == 2, ""); 48 // static_assert(sizeof(test(std::forward<const A&>(source()))) == 2, ""); 49 static_assert(sizeof(test(std::forward<const A>(a))) == 8, ""); 50 static_assert(sizeof(test(std::forward<const A>(source()))) == 8, ""); 52 static_assert(sizeof(test(std::forward<const A&>(ca))) == 2, ""); 53 // static_assert(sizeof(test(std::forward<const A&>(csource()))) == 2, ""); 54 static_assert(sizeof(test(std::forward<const A>(ca))) == 8, "") [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/ |
p4-cxx0x.cpp | 18 static_assert(is_same<decltype(foo()), const int&&>::value, ""); 19 static_assert(is_same<decltype(i), int>::value, ""); 20 static_assert(is_same<decltype(a->x), double>::value, ""); 21 static_assert(is_same<decltype((a->x)), const double&>::value, ""); 22 static_assert(is_same<decltype(static_cast<int&&>(i)), int&&>::value, "");
|
/external/clang/test/CXX/except/except.spec/ |
p15.cpp | 15 static_assert(noexcept(operator delete(0)), ""); 16 static_assert(noexcept(operator delete[](0)), ""); 22 static_assert(noexcept(operator delete(0, 0.f)), ""); 23 static_assert(noexcept(operator delete[](0, 0.f)), ""); 27 static_assert(!noexcept(operator delete(0, 0.)), "");
|
/external/clang/test/SemaTemplate/ |
instantiate-array.cpp | 8 #define static_assert(__b, __m) \ macro 16 static_assert(sizeof(IntArray<10>) == sizeof(int) * 10, "Array size mismatch"); 17 static_assert(sizeof(IntArray<1>) == sizeof(int) * 1, "Array size mismatch"); 23 static_assert(sizeof(TenElementArray<int>) == sizeof(int) * 10, "Array size mismatch"); 29 static_assert(sizeof(Array<int, 10>) == sizeof(int) * 10, "Array size mismatch");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/array/ |
types.pass.cpp | 37 static_assert((std::is_same<C::reference, T&>::value), ""); 38 static_assert((std::is_same<C::const_reference, const T&>::value), ""); 39 static_assert((std::is_same<C::iterator, T*>::value), ""); 40 static_assert((std::is_same<C::const_iterator, const T*>::value), ""); 41 static_assert((std::is_same<C::pointer, T*>::value), ""); 42 static_assert((std::is_same<C::const_pointer, const T*>::value), ""); 43 static_assert((std::is_same<C::size_type, std::size_t>::value), ""); 44 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); 45 static_assert((std::is_same<C::reverse_iterator, std::reverse_iterator<C::iterator> >::value), ""); 46 static_assert((std::is_same<C::const_reverse_iterator, std::reverse_iterator<C::const_iterator> >::value), "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/iterator.primitives/iterator.basic/ |
iterator.pass.cpp | 33 static_assert((std::is_same<typename It::value_type, T>::value), ""); 34 static_assert((std::is_same<typename It::difference_type, std::ptrdiff_t>::value), ""); 35 static_assert((std::is_same<typename It::pointer, T*>::value), ""); 36 static_assert((std::is_same<typename It::reference, T&>::value), ""); 37 static_assert((std::is_same<typename It::iterator_category, std::forward_iterator_tag>::value), ""); 45 static_assert((std::is_same<typename It::value_type, T>::value), ""); 46 static_assert((std::is_same<typename It::difference_type, short>::value), ""); 47 static_assert((std::is_same<typename It::pointer, T*>::value), ""); 48 static_assert((std::is_same<typename It::reference, T&>::value), ""); 49 static_assert((std::is_same<typename It::iterator_category, std::bidirectional_iterator_tag>::value), "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/cstdint/cstdint.syn/ |
cstdint.pass.cpp | 23 static_assert(sizeof(std::int8_t)*CHAR_BIT == 8, 25 static_assert(std::is_signed<std::int8_t>::value, 28 static_assert(sizeof(std::int16_t)*CHAR_BIT == 16, 30 static_assert(std::is_signed<std::int16_t>::value, 33 static_assert(sizeof(std::int32_t)*CHAR_BIT == 32, 35 static_assert(std::is_signed<std::int32_t>::value, 38 static_assert(sizeof(std::int64_t)*CHAR_BIT == 64, 40 static_assert(std::is_signed<std::int64_t>::value, 44 static_assert(sizeof(std::uint8_t)*CHAR_BIT == 8, 46 static_assert(std::is_unsigned<std::uint8_t>::value [all...] |