Skip to content

Commit aa80b6f

Browse files
authored
Fix compilable/stdcheaders.c regression with latest MSVC v17.13 headers (#4851)
As used by GHA in their latest windows-2022 image.
1 parent c5f1944 commit aa80b6f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/dmd/compilable/stdcheaders.c

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
* Many platforms do not support all the C Standard headers.
33
*/
44

5+
/* LDC defaults to clang-cl (if available) as preprocessor on Windows, which for
6+
* this test causes importC trouble starting with the MSVC v17.13 headers, wrt.
7+
* `__declspec(_Noreturn)`, `_Float16`, `__bf16`, `unsigned __int128` etc.
8+
*
9+
* => use Microsoft's cl.exe as preprocessor
10+
* REQUIRED_ARGS(windows): -gcc=cl
11+
*
12+
* => ignore cl.exe printing the preprocessed filename (auto-suppressed by DMD)
13+
* TRANSFORM_OUTPUT(windows): remove_lines("^stdcheaders\.c$")
14+
*/
15+
516
#include <assert.h>
617

718
#include <complex.h>

0 commit comments

Comments
 (0)