From 5f4472e45101dae008f375f6a2a3162500e6bc21 Mon Sep 17 00:00:00 2001 From: Erik Desjardins Date: Thu, 18 May 2023 17:53:03 -0400 Subject: [PATCH] extern-fn-explicit-align test: add MSVC compatible alignment attribute --- tests/run-make/extern-fn-explicit-align/test.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/run-make/extern-fn-explicit-align/test.c b/tests/run-make/extern-fn-explicit-align/test.c index a015fc9aaf60..154b63ff45b3 100644 --- a/tests/run-make/extern-fn-explicit-align/test.c +++ b/tests/run-make/extern-fn-explicit-align/test.c @@ -3,11 +3,20 @@ #include #include +#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 {