test: actually fix the condition properly
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Sep 2018 19:20:30 +0000 (19:20 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Sep 2018 19:20:30 +0000 (19:20 +0000)
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

clang/test/Sema/format-strings.c

index 20b9496..5cfa5b4 100644 (file)
@@ -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'}}