1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -triple i386-pc-win32 -fms-compatibility %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc #if defined(_WCHAR_T_DEFINED) 4*f4a2713aSLionel Sambuc #error "_WCHAR_T_DEFINED should not be defined in C99" 5*f4a2713aSLionel Sambuc #endif 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc #include <stddef.h> 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc #if !defined(_WCHAR_T_DEFINED) 10*f4a2713aSLionel Sambuc #error "_WCHAR_T_DEFINED should have been set by stddef.h" 11*f4a2713aSLionel Sambuc #endif 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc #if defined(_NATIVE_WCHAR_T_DEFINED) 14*f4a2713aSLionel Sambuc #error "_NATIVE_WCHAR_T_DEFINED should not be defined" 15*f4a2713aSLionel Sambuc #endif 16