From 0700120a952c0c3dd2d386296949a8daf8d9102d Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 25 Feb 2014 00:30:14 +0000 Subject: [PATCH] clang/test/Preprocessor/init.c: Split conditions to win32 and non-win32. FIXME: Implement and check x86_64-cygwin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202094 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Preprocessor/init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index 4c70aec297..994dc1f5b4 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -196,13 +196,17 @@ // SCHAR:#define __clang__ 1 // // RUN: %clang_cc1 -E -dM -fshort-wchar < /dev/null | FileCheck -check-prefix SHORTWCHAR %s +// wchar_t is u16 for targeting Win32. +// FIXME: Implement and check x86_64-cygwin. +// RUN: %clang_cc1 -E -dM -fno-short-wchar -triple=x86_64-w64-mingw32 < /dev/null | FileCheck -check-prefix SHORTWCHAR %s // // SHORTWCHAR: #define __SIZEOF_WCHAR_T__ 2 // SHORTWCHAR: #define __WCHAR_MAX__ 65535U // SHORTWCHAR: #define __WCHAR_TYPE__ unsigned short // SHORTWCHAR: #define __WCHAR_WIDTH__ 16 // -// RUN: %clang_cc1 -E -dM -fno-short-wchar < /dev/null | FileCheck -check-prefix SHORTWCHAR2 %s +// RUN: %clang_cc1 -E -dM -fno-short-wchar -triple=i686-unknown-unknown < /dev/null | FileCheck -check-prefix SHORTWCHAR2 %s +// RUN: %clang_cc1 -E -dM -fno-short-wchar -triple=x86_64-unknown-unknown < /dev/null | FileCheck -check-prefix SHORTWCHAR2 %s // // SHORTWCHAR2: #define __SIZEOF_WCHAR_T__ 4 // SHORTWCHAR2: #define __WCHAR_WIDTH__ 32 -- 2.40.0