Chandler Carruth | 2c93cb2 | 2013-09-20 21:12:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -triple i386-pc-win32 -fms-compatibility %s |
Hans Wennborg | 4c02be3 | 2013-05-02 13:12:32 +0000 | [diff] [blame] | 2 | |
| 3 | #if defined(_WCHAR_T_DEFINED) |
| 4 | #error "_WCHAR_T_DEFINED should not be defined in C99" |
| 5 | #endif |
| 6 | |
| 7 | #include <stddef.h> |
| 8 | |
| 9 | #if !defined(_WCHAR_T_DEFINED) |
| 10 | #error "_WCHAR_T_DEFINED should have been set by stddef.h" |
| 11 | #endif |
| 12 | |
| 13 | #if defined(_NATIVE_WCHAR_T_DEFINED) |
| 14 | #error "_NATIVE_WCHAR_T_DEFINED should not be defined" |
| 15 | #endif |