summaryrefslogtreecommitdiffstats
path: root/clang/test/Headers/ms-wchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Headers/ms-wchar.c')
-rw-r--r--clang/test/Headers/ms-wchar.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Headers/ms-wchar.c b/clang/test/Headers/ms-wchar.c
new file mode 100644
index 00000000000..f015fc77ee5
--- /dev/null
+++ b/clang/test/Headers/ms-wchar.c
@@ -0,0 +1,15 @@
+// RUN: %clang -fsyntax-only -target i386-pc-win32 %s
+
+#if defined(_WCHAR_T_DEFINED)
+#error "_WCHAR_T_DEFINED should not be defined in C99"
+#endif
+
+#include <stddef.h>
+
+#if !defined(_WCHAR_T_DEFINED)
+#error "_WCHAR_T_DEFINED should have been set by stddef.h"
+#endif
+
+#if defined(_NATIVE_WCHAR_T_DEFINED)
+#error "_NATIVE_WCHAR_T_DEFINED should not be defined"
+#endif
OpenPOWER on IntegriCloud