
MSVC expects wchar_t to be defined in stddef.h if /Zc:wchar_t- is specified Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D124026
7 lines
223 B
C++
7 lines
223 B
C++
// RUN: %clang_cc1 -fsyntax-only -triple x86_64-pc-windows-msvc -fms-compatibility-version=17.00 -fno-wchar %s
|
|
// MSVC defines wchar_t instead of using the builtin if /Zc:wchar_t- is passed
|
|
|
|
#include <stddef.h>
|
|
|
|
wchar_t c;
|