Author: chapuni Date: Fri Jul 14 23:14:47 2017 New Revision: 308084 URL: http://llvm.org/viewvc/llvm-project?rev=308084&view=rev Log: clang/test/FixIt/format.m: Tweak for i686, where ssize_t is int. (r308067)
Modified: cfe/trunk/test/FixIt/format.m Modified: cfe/trunk/test/FixIt/format.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/format.m?rev=308084&r1=308083&r2=308084&view=diff ============================================================================== --- cfe/trunk/test/FixIt/format.m (original) +++ cfe/trunk/test/FixIt/format.m Fri Jul 14 23:14:47 2017 @@ -236,8 +236,8 @@ void testSizeTypes() { printf("%zd", 0.f); // expected-warning-re{{format specifies type 'ssize_t' (aka '{{.+}}') but the argument has type 'float'}} // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:14}:"%f" - int x; - printf("%zn", &x); // expected-warning-re{{format specifies type 'ssize_t *' (aka '{{.+}}') but the argument has type 'int *'}} + short x; + printf("%zn", &x); // expected-warning-re{{format specifies type 'ssize_t *' (aka '{{.+}}') but the argument has type 'short *'}} // PrintfSpecifier::fixType doesn't handle %n, so a fix-it is not emitted, // see the comment in PrintfSpecifier::fixType in PrintfFormatString.cpp. } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits