summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-12 08:04:33 +0000
committerChris Lattner <sabre@nondot.org>2009-11-12 08:04:33 +0000
commit0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c (patch)
tree42bc59fbbbca52b8ca111f205ed3da45ab65022b /clang/test
parenteb9acbfb0522f4f69f1a11e47ebeda7f1a61e1df (diff)
downloadbcm5719-llvm-0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c.tar.gz
bcm5719-llvm-0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c.zip
do not store wchar/char16/char32/intmax width/alignment info
into TargetInfo, just derive this based on the underlying type. This prevents them from getting out of synch, patch by Ken Dyck! llvm-svn: 86976
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Preprocessor/init.c4
-rw-r--r--clang/test/Preprocessor/stdint.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index 6f8f61b6358..95f978bec3b 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -408,7 +408,7 @@
// MSP430:#define __SIZE_TYPE__ unsigned int
// MSP430:#define __UINTMAX_TYPE__ long unsigned int
// MSP430:#define __USER_LABEL_PREFIX__ _
-// MSP430:#define __WCHAR_MAX__ 2147483647
+// MSP430:#define __WCHAR_MAX__ 32767
// MSP430:#define __WCHAR_TYPE__ int
// MSP430:#define __WINT_TYPE__ int
// MSP430:#define __clang__ 1
@@ -476,7 +476,7 @@
// PIC16:#define __SIZE_TYPE__ unsigned int
// PIC16:#define __UINTMAX_TYPE__ long unsigned int
// PIC16:#define __USER_LABEL_PREFIX__ _
-// PIC16:#define __WCHAR_MAX__ 2147483647
+// PIC16:#define __WCHAR_MAX__ 32767
// PIC16:#define __WCHAR_TYPE__ int
// PIC16:#define __WINT_TYPE__ int
// PIC16:#define __clang__ 1
diff --git a/clang/test/Preprocessor/stdint.c b/clang/test/Preprocessor/stdint.c
index c732bf51dee..a1c82f4c203 100644
--- a/clang/test/Preprocessor/stdint.c
+++ b/clang/test/Preprocessor/stdint.c
@@ -406,8 +406,8 @@
// MSP430:WINT_MIN_ (-2147483647 -1)
// MSP430:WINT_MAX_ 2147483647
//
-// MSP430:WCHAR_MAX_ 2147483647
-// MSP430:WCHAR_MIN_ (-2147483647 -1)
+// MSP430:WCHAR_MAX_ 32767
+// MSP430:WCHAR_MIN_ (-32767 -1)
//
// MSP430:INT8_C_(0) (0)
// MSP430:UINT8_C_(0) (0U)
@@ -506,8 +506,8 @@
// PIC16:WINT_MIN_ (-2147483647 -1)
// PIC16:WINT_MAX_ 2147483647
//
-// PIC16:WCHAR_MAX_ 2147483647
-// PIC16:WCHAR_MIN_ (-2147483647 -1)
+// PIC16:WCHAR_MAX_ 32767
+// PIC16:WCHAR_MIN_ (-32767 -1)
//
// PIC16:INT8_C_(0) (0)
// PIC16:UINT8_C_(0) (0U)
OpenPOWER on IntegriCloud