Home
last modified time | relevance | path

Searched refs:static_assert (Results 1 – 25 of 30) sorted by relevance

12

/bionic/tests/
Dsys_procfs_test.cpp37 static_assert(sizeof(prgregset_t) == sizeof(elf_gregset_t), ""); in TEST()
38 static_assert(sizeof(prfpregset_t) == sizeof(elf_fpregset_t), ""); in TEST()
43 static_assert(sizeof(gregset_t) / sizeof(greg_t) == NGREG); in TEST()
46 static_assert(sizeof(user_regs) / sizeof(elf_greg_t) == ELF_NGREG); in TEST()
48 static_assert(sizeof(user_pt_regs) / sizeof(elf_greg_t) == ELF_NGREG); in TEST()
50 static_assert(sizeof(user_regs_struct) / sizeof(elf_greg_t) == ELF_NGREG); in TEST()
Dnetinet_udp_test.cpp31 static_assert(offsetof(udphdr, uh_sport) == offsetof(udphdr, source), "udphdr::source"); in TEST()
32 static_assert(offsetof(udphdr, uh_dport) == offsetof(udphdr, dest), "udphdr::dest"); in TEST()
33 static_assert(offsetof(udphdr, uh_ulen) == offsetof(udphdr, len), "udphdr::len"); in TEST()
34 static_assert(offsetof(udphdr, uh_sum) == offsetof(udphdr, check), "udphdr::check"); in TEST()
Dthread_local_test.cpp189 static_assert(sizeof(size_t) == sizeof(gcc_word), in TEST()
191 static_assert(sizeof(uintptr_t) == sizeof(gcc_pointer), in TEST()
193 static_assert(sizeof(uintptr_t) == sizeof(void*), in TEST()
195 static_assert(sizeof(__emutls_control) == sizeof(struct gcc_emutls_object), in TEST()
Dsys_random_test.cpp63 static_assert(BUFSIZ > 256, "BUFSIZ <= 256!"); in TEST()
Dclang_fortify_tests.cpp165 static_assert(sizeof(large_string) > sizeof(small_buffer), ""); in FORTIFY_TEST()
201 static_assert(sizeof(small_string) > sizeof(split.tiny_buffer), ""); in FORTIFY_TEST()
425 static_assert(sizeof(fds) >= sizeof(struct pollfd) * 3, ""); in FORTIFY_TEST()
Dcfi_test.cpp109 static_assert(bss_size >= kLibraryAlignment * 2, "test range not big enough"); in TEST_F()
/bionic/libc/include/
Dassert.h68 # undef static_assert
69 # define static_assert _Static_assert macro
/bionic/libc/bionic/
Dpthread_spinlock.cpp40 static_assert(sizeof(pthread_spinlock_t) == sizeof(pthread_spinlock_internal_t),
43 static_assert(alignof(pthread_spinlock_t) >= 4,
Dandroid_set_abort_message.cpp46 static_assert(
55 static_assert(offsetof(magic_abort_msg_t, msg) == 2 * sizeof(uint64_t),
Dftruncate.cpp22 static_assert(sizeof(off_t) == 4,
Dpthread_barrier.cpp80 static_assert(sizeof(pthread_barrier_t) == sizeof(pthread_barrier_internal_t),
84 static_assert(alignof(pthread_barrier_t) >= 4,
Dpthread_once.cpp42 static_assert(sizeof(atomic_int) == sizeof(pthread_once_t), in pthread_once()
Dpthread_cond.cpp124 static_assert(sizeof(pthread_cond_t) == sizeof(pthread_cond_internal_t),
129 static_assert(alignof(pthread_cond_t) == 4,
Dsystem_property_api.cpp38 static_assert(__is_trivially_constructible(SystemProperties),
Dpthread_key.cpp63 static_assert(sizeof(pthread_key_t) == sizeof(int) && static_cast<pthread_key_t>(-1) < 0,
Dpthread_mutex.cpp489 static_assert(sizeof(pthread_mutex_t) == sizeof(pthread_mutex_internal_t),
494 static_assert(alignof(pthread_mutex_t) == 4,
701 static_assert(offsetof(pthread_mutex_internal_t, state) == 0, ""); in RecursiveOrErrorcheckMutexWait()
702 static_assert(offsetof(pthread_mutex_internal_t, owner_tid) == 2, ""); in RecursiveOrErrorcheckMutexWait()
Dpthread_rwlock.cpp214 static_assert(sizeof(pthread_rwlock_t) == sizeof(pthread_rwlock_internal_t),
219 static_assert(alignof(pthread_rwlock_t) == 4,
Dsemaphore.cpp89 static_assert(sizeof(atomic_uint) == sizeof(sem->count), in SEM_TO_ATOMIC_POINTER()
/bionic/libc/private/
DWriteProtected.h44 static_assert(sizeof(T) < PAGE_SIZE,
46 static_assert(__is_pod(T), "WriteProtected only supports POD contents");
/bionic/libc/system_properties/
Dprop_info.cpp35 static_assert(sizeof(kLongLegacyError) < prop_info::kLongLegacyErrorBufferSize,
/bionic/linker/
Dlinker_block_allocator.cpp40 static_assert(kAllocateSize % PAGE_SIZE == 0, "Invalid kAllocateSize.");
120 static_assert(sizeof(LinkerBlockAllocatorPage) == kAllocateSize, in create_new_page()
/bionic/libc/system_properties/include/system_properties/
Dprop_info.h89 static_assert(sizeof(prop_info) == 96, "sizeof struct prop_info must be 96 bytes");
/bionic/libdl/
Dlibdl_cfi.cpp37 static_assert(sizeof(shadow_base_storage) == PAGE_SIZE, ""); in __cfi_init()
/bionic/libc/stdio/
Dstdio.cpp633 static_assert(sizeof(off_t) == sizeof(long), "sizeof(off_t) != sizeof(long)"); in fseeko()
655 static_assert(sizeof(off_t) == sizeof(long), "sizeof(off_t) != sizeof(long)"); in ftello()
1019 static_assert(INT_MAX <= SSIZE_MAX, "SSIZE_MAX too large to fit in int"); in vsnprintf()
1246 static_assert(sizeof(::__sFILE) == sizeof(phony::__sFILE),
1248 static_assert(alignof(::__sFILE) == alignof(phony::__sFILE),
/bionic/libc/arch-arm/
Ddynamic_function_dispatch.cpp95 static_assert(MAX_CPU_NAME_LEN % sizeof(int) == 0, ""); in is_same_name()

12