summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-02-25 00:30:14 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-02-25 00:30:14 +0000
commit210fbcdd5a3dceb57f6b8cb3abd06d37c86432dd (patch)
tree6994f9da3417f9e4fa925fa6a8def8eb622a839e /clang/test
parent051b40c1cbd0f08c6c52a01638b953ad2e9fff50 (diff)
downloadbcm5719-llvm-210fbcdd5a3dceb57f6b8cb3abd06d37c86432dd.tar.gz
bcm5719-llvm-210fbcdd5a3dceb57f6b8cb3abd06d37c86432dd.zip
clang/test/Preprocessor/init.c: Split conditions to win32 and non-win32.
FIXME: Implement and check x86_64-cygwin. llvm-svn: 202094
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Preprocessor/init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index 4c70aec2971..994dc1f5b41 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/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
OpenPOWER on IntegriCloud