From e3fe559f0d08e246475a75ccca0433a2263ceb1d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 15 Oct 2019 16:02:28 +0200 Subject: [PATCH] windows.cfg: Add support for `__alignof()` (#2271) Reference: https://docs.microsoft.com/en-us/cpp/cpp/alignof-operator?view=vs-2019 --- cfg/windows.cfg | 9 +++++++++ test/cfg/windows.cpp | 3 +++ 2 files changed, 12 insertions(+) diff --git a/cfg/windows.cfg b/cfg/windows.cfg index 2ca20db64..2230f80dc 100644 --- a/cfg/windows.cfg +++ b/cfg/windows.cfg @@ -6338,6 +6338,15 @@ HFONT CreateFont( + + + + false + + + + + diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index d2a82e6ac..2affba1f6 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -192,6 +192,9 @@ void validCode() ::PostMessage(nullptr, WM_QUIT, 0, 0); + printf("%zu", __alignof(int)); + printf("%zu", _alignof(double)); + // Valid Library usage, no leaks, valid arguments HINSTANCE hInstLib = LoadLibrary(L"My.dll"); FreeLibrary(hInstLib);