summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/stdint.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-07-17 20:12:32 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-07-17 20:12:32 +0000
commit587deea8755b5adab19350b30c71ec5d2c765bf2 (patch)
tree8cb9cbed040c6461f870c4b508b670c5ce15b63a /clang/test/Preprocessor/stdint.c
parent11698180c336ea4a077a896b79ab2621fb36585f (diff)
downloadbcm5719-llvm-587deea8755b5adab19350b30c71ec5d2c765bf2.tar.gz
bcm5719-llvm-587deea8755b5adab19350b30c71ec5d2c765bf2.zip
If char/short are shorter than int, do not use U as suffix for
constants. Comparing int against a constant of the given type like UINT8_MAX will otherwise force a promotion to unsigned int, which is typically not expected. llvm-svn: 213301
Diffstat (limited to 'clang/test/Preprocessor/stdint.c')
-rw-r--r--clang/test/Preprocessor/stdint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Preprocessor/stdint.c b/clang/test/Preprocessor/stdint.c
index b92cfe7cf37..011d6a4515f 100644
--- a/clang/test/Preprocessor/stdint.c
+++ b/clang/test/Preprocessor/stdint.c
@@ -1173,8 +1173,8 @@
//
// 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
+// I386_MINGW32:WCHAR_MAX_ 65535
+// I386_MINGW32:WCHAR_MIN_ 0
//
//
// RUN: %clang_cc1 -E -ffreestanding -triple=xcore-none-none %s | FileCheck -check-prefix XCORE %s
@@ -1269,7 +1269,7 @@
// XCORE:WINT_MIN_ 0U
// XCORE:WINT_MAX_ 4294967295U
//
-// XCORE:WCHAR_MAX_ 255U
+// XCORE:WCHAR_MAX_ 255
// XCORE:WCHAR_MIN_ 0
//
// XCORE:INT8_C_(0) 0
OpenPOWER on IntegriCloud