We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f1944 commit aa80b6fCopy full SHA for aa80b6f
tests/dmd/compilable/stdcheaders.c
@@ -2,6 +2,17 @@
2
* Many platforms do not support all the C Standard headers.
3
*/
4
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
+
16
#include <assert.h>
17
18
#include <complex.h>
0 commit comments