#include "stdafx.h" // No BOM and only basic ASCII in this file, or a neko will die static_assert(std::endian::native == std::endian::little || std::endian::native == std::endian::big); CHECK_SIZE_ALIGN(u128, 16, 16); CHECK_SIZE_ALIGN(s128, 16, 16); CHECK_SIZE_ALIGN(f16, 2, 2); static_assert(be_t(1) + be_t(2) + be_t(3) == 6); static_assert(le_t(1) + le_t(2) + le_t(3) == 6); static_assert(sizeof(nullptr) == sizeof(void*)); static_assert(__cpp_constexpr_dynamic_alloc >= 201907L); namespace { struct A { int a; }; struct B : A { int b; }; struct Z { }; struct C { virtual ~C() = 0; int C; }; struct D : Z, B { int d; }; struct E : C, B { int e; }; struct F : C { virtual ~F() = 0; }; static_assert(is_same_ptr()); static_assert(is_same_ptr()); static_assert(is_same_ptr()); static_assert(is_same_ptr()); static_assert(!is_same_ptr()); static_assert(!is_same_ptr()); static_assert(is_same_ptr()); static_assert(is_same_ptr()); }