Searched refs:static_assert (Results 1 – 19 of 19) sorted by relevance
/bionic/tests/ |
D | netinet_udp_test.cpp | 31 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()
|
D | sys_procfs_test.cpp | 37 static_assert(sizeof(prgregset_t) == sizeof(elf_gregset_t), ""); in TEST() 38 static_assert(sizeof(prfpregset_t) == sizeof(elf_fpregset_t), ""); in TEST()
|
D | thread_local_test.cpp | 197 static_assert(sizeof(size_t) == sizeof(gcc_word), in TEST() 199 static_assert(sizeof(uintptr_t) == sizeof(gcc_pointer), in TEST() 201 static_assert(sizeof(uintptr_t) == sizeof(void*), in TEST() 203 static_assert(sizeof(__emutls_control) == sizeof(struct gcc_emutls_object), in TEST()
|
D | signal_test.cpp | 420 static_assert(sizeof(sigset_t) <= sizeof(long), "sigset_t doesn't fit in a long"); in TEST()
|
/bionic/libc/include/ |
D | assert.h | 58 # undef static_assert 59 # define static_assert _Static_assert macro
|
/bionic/libc/bionic/ |
D | pthread_spinlock.cpp | 40 static_assert(sizeof(pthread_spinlock_t) == sizeof(pthread_spinlock_internal_t), 43 static_assert(alignof(pthread_spinlock_t) >= 4,
|
D | ftruncate.cpp | 22 static_assert(sizeof(off_t) == 4,
|
D | pthread_once.cpp | 42 static_assert(sizeof(atomic_int) == sizeof(pthread_once_t), in pthread_once()
|
D | pthread_barrier.cpp | 80 static_assert(sizeof(pthread_barrier_t) == sizeof(pthread_barrier_internal_t), 84 static_assert(alignof(pthread_barrier_t) >= 4,
|
D | pthread_cond.cpp | 123 static_assert(sizeof(pthread_cond_t) == sizeof(pthread_cond_internal_t), 128 static_assert(alignof(pthread_cond_t) == 4,
|
D | pthread_mutex.cpp | 229 static_assert(sizeof(pthread_mutex_t) == sizeof(pthread_mutex_internal_t), 234 static_assert(alignof(pthread_mutex_t) == 4, 412 static_assert(offsetof(pthread_mutex_internal_t, state) == 0, ""); in __recursive_or_errorcheck_mutex_wait() 413 static_assert(offsetof(pthread_mutex_internal_t, owner_tid) == 2, ""); in __recursive_or_errorcheck_mutex_wait()
|
D | pthread_key.cpp | 62 static_assert(sizeof(pthread_key_t) == sizeof(int) && static_cast<pthread_key_t>(-1) < 0,
|
D | pthread_rwlock.cpp | 214 static_assert(sizeof(pthread_rwlock_t) == sizeof(pthread_rwlock_internal_t), 219 static_assert(alignof(pthread_rwlock_t) == 4,
|
D | semaphore.cpp | 90 static_assert(sizeof(atomic_uint) == sizeof(sem->count), in SEM_TO_ATOMIC_POINTER()
|
/bionic/libc/private/ |
D | WriteProtected.h | 44 static_assert(sizeof(T) < PAGE_SIZE, 46 static_assert(__is_pod(T), "WriteProtected only supports POD contents");
|
/bionic/libdl/ |
D | libdl_cfi.cpp | 37 static_assert(sizeof(shadow_base_storage) == PAGE_SIZE, ""); in __cfi_init()
|
/bionic/linker/ |
D | linker_block_allocator.cpp | 116 static_assert(sizeof(LinkerBlockAllocatorPage) == PAGE_SIZE, in create_new_page()
|
D | linker_allocator.cpp | 201 static_assert(sizeof(page_info) % 16 == 0, in alloc_page()
|
/bionic/libc/stdio/ |
D | stdio.cpp | 552 static_assert(sizeof(off_t) == sizeof(long), "sizeof(off_t) != sizeof(long)"); in fseeko() 570 static_assert(sizeof(off_t) == sizeof(long), "sizeof(off_t) != sizeof(long)"); in ftello() 808 static_assert(INT_MAX <= SSIZE_MAX, "SSIZE_MAX too large to fit in int"); in vsnprintf() 858 static_assert(sizeof(::__sFILE) == sizeof(phony::__sFILE), 860 static_assert(alignof(::__sFILE) == alignof(phony::__sFILE),
|