From: Saleem Abdulrasool Date: Wed, 19 Sep 2018 19:20:30 +0000 (+0000) Subject: test: actually fix the condition properly X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47f7c9f1a774a48d11a686ab754f5a4b5342f5f5;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342581 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c index 20b9496663..5cfa5b4747 100644 --- a/test/Sema/format-strings.c +++ b/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'}}