summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/stdint.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-04-30 19:02:59 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-04-30 19:02:59 +0000
commitfe0739dffb1e5e2e2be3ebc9c15ff9a732a8b9f6 (patch)
treed94998df7f23d4d1cf5cc55fe763d6037eebba14 /clang/test/Preprocessor/stdint.c
parent6a10ed51c09587b3fceba73459f6e81523384050 (diff)
downloadbcm5719-llvm-fe0739dffb1e5e2e2be3ebc9c15ff9a732a8b9f6.tar.gz
bcm5719-llvm-fe0739dffb1e5e2e2be3ebc9c15ff9a732a8b9f6.zip
Some small improvements to the builtin (-ffreestanding) stdint.h; in
particular, make sure to handle WCHAR_MIN correctly. llvm-svn: 130618
Diffstat (limited to 'clang/test/Preprocessor/stdint.c')
-rw-r--r--clang/test/Preprocessor/stdint.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/stdint.c b/clang/test/Preprocessor/stdint.c
index 4821cf423f4..ee8e3c28c37 100644
--- a/clang/test/Preprocessor/stdint.c
+++ b/clang/test/Preprocessor/stdint.c
@@ -1061,10 +1061,16 @@
//
// RUN: %clang_cc1 -E -ffreestanding -triple=x86_64-pc-linux-gnu %s | FileCheck -check-prefix X86_64_LINUX %s
//
-// X86_64_LINUX:WINT_MIN_ 0
+// X86_64_LINUX:WINT_MIN_ 0U
// X86_64_LINUX:WINT_MAX_ 4294967295U
//
//
+// RUN: %clang_cc1 -E -ffreestanding -triple=i386-mingw32 %s | FileCheck -check-prefix I386_MINGW32 %s
+//
+// I386_MINGW32:WCHAR_MAX_ 65535U
+// I386_MINGW32:WCHAR_MIN_ 0U
+//
+//
// stdint.h forms several macro definitions by pasting together identifiers
// to form names (eg. int32_t is formed from int ## 32 ## _t). The following
// case tests that these joining operations are performed correctly even if
OpenPOWER on IntegriCloud