]> granicus.if.org Git - clang/commit
Disable the ssize_t test in format-strings-fixit.c.
authorHans Wennborg <hans@hanshq.net>
Tue, 18 Oct 2011 08:58:16 +0000 (08:58 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 18 Oct 2011 08:58:16 +0000 (08:58 +0000)
commit4886e32e1f0bc778a47d23ac88a9c72f2c6305b0
tree4d16b1d471583a28adaad466c9719722edf6b288
parenta7da2155167676a6a5d9fca4de947a9cab2a4908
Disable the ssize_t test in format-strings-fixit.c.

Turns out this part of the test from r142342 wasn't portable.
The errors on the bots look like this:

E:\bb-win7\cmake-clang-i686-msys\build\tools\clang\test\Sema\Output\format-strings-fixit.c.tmp:58:13: error: conversion specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long')
  printf("%zd", (ssize_t) 42);
          ~~^   ~~~~~~~~~~~~
          %zd

Obviously we can't typedef ssize_t to someting that doesn't have the same size as size_t and expect it to work.

But it's also weird that the format string "%zd" gets interpreted as "unsigned int" when it should clearly be signed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142345 91177308-0d34-0410-b5e6-96231b3b80d8
test/Sema/format-strings-fixit.c