summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/fix-its.c
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-01-17 22:34:10 +0000
committerJordan Rose <jordan_rose@apple.com>2013-01-17 22:34:10 +0000
commit1eb342920b33cda278a913435daad6e1dece6396 (patch)
tree83a69f2afc9801984af74d5159d0f7502b18c4af /clang/test/Index/fix-its.c
parent0015f0987792014c9f9daf595c8f4594cb465213 (diff)
downloadbcm5719-llvm-1eb342920b33cda278a913435daad6e1dece6396.tar.gz
bcm5719-llvm-1eb342920b33cda278a913435daad6e1dece6396.zip
Format strings: don't ever convert %+d to %lu.
Presumably, if the printf format has the sign explicitly requested, the user wants to treat the data as signed. This is a fix-up for r172739, and also includes several test changes that didn't make it into that commit. llvm-svn: 172762
Diffstat (limited to 'clang/test/Index/fix-its.c')
-rw-r--r--clang/test/Index/fix-its.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/fix-its.c b/clang/test/Index/fix-its.c
index d5cb1af854c..1e710c28afc 100644
--- a/clang/test/Index/fix-its.c
+++ b/clang/test/Index/fix-its.c
@@ -22,6 +22,6 @@ int printf(const char *restrict, ...);
void f2() {
unsigned long index;
// CHECK: warning: format specifies type 'int' but the argument has type 'unsigned long'
- // CHECK: FIX-IT: Replace [26:17 - 26:19] with "%ld"
+ // CHECK: FIX-IT: Replace [26:17 - 26:19] with "%lu"
MACRO(printf("%d", index));
}
OpenPOWER on IntegriCloud