test: improve condition for the check
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Sep 2018 18:41:07 +0000 (18:41 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Sep 2018 18:41:07 +0000 (18:41 +0000)
commit241c33bca7f1361573865c672b4e968511e04d8a
treedff1c21601db6ab9b1008b6aca5fcb0fdd51bd1f
parent3461eae4a65dcda07c0a4a6d9abfa663413cb492
test: improve condition for the check

When the type of `wint_t` is `int`, the promotion will allow this to pass.
Check this explicitly rather than using the size.

llvm-svn: 342569
clang/test/Sema/format-strings.c