summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2018-09-19 19:20:30 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2018-09-19 19:20:30 +0000
commita4526d77c9921c86a29889fc09de17f7d5ccb210 (patch)
treece75f3bfbc746295178e8a9c1972a02800336489
parent2d0f20cc043458c945e4959c5b130c07a7f5b8b5 (diff)
downloadbcm5719-llvm-a4526d77c9921c86a29889fc09de17f7d5ccb210.tar.gz
bcm5719-llvm-a4526d77c9921c86a29889fc09de17f7d5ccb210.zip
test: actually fix the condition properly
I had locally changed the test to add an explicit triple to figure out the issue with the SCEI buildbots, and that hid the error. This now works with and without the explicit triple. llvm-svn: 342581
-rw-r--r--clang/test/Sema/format-strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c
index 20b94966637..5cfa5b4747a 100644
--- a/clang/test/Sema/format-strings.c
+++ b/clang/test/Sema/format-strings.c
@@ -401,7 +401,7 @@ void bug7377_bad_length_mod_usage() {
void pr7981(wint_t c, wchar_t c2) {
printf("%lc", c); // no-warning
printf("%lc", 1.0); // expected-warning{{the argument has type 'double'}}
-#if __WINT_TYPE__ == int
+#if __WINT_WIDTH__ == 32
printf("%lc", (char) 1); // no-warning
#else
printf("%lc", (char) 1); // expected-warning{{the argument has type 'char'}}
OpenPOWER on IntegriCloud