extern-fn-explicit-align test: add MSVC compatible alignment attribute

This commit is contained in:
Erik Desjardins 2023-05-18 17:53:03 -04:00
parent 84ff2e3d1c
commit 5f4472e451

View File

@ -3,11 +3,20 @@
#include <stdint.h>
#include <string.h>
#ifdef _MSC_VER
__declspec(align(16))
struct TwoU64s
{
uint64_t a;
uint64_t b;
} __attribute__((aligned(16)));
};
#else
struct __attribute__((aligned(16))) TwoU64s
{
uint64_t a;
uint64_t b;
};
#endif
struct BoolAndU32
{