r209974 - Fix test on platforms where size_t is not 'unsigned long'.

Jordan Rose jordan_rose at apple.com
Sat May 31 12:04:19 PDT 2014


Thanks, Ben!

On May 31, 2014, at 8:06 , Benjamin Kramer <benny.kra at googlemail.com> wrote:

> Author: d0k
> Date: Sat May 31 10:06:33 2014
> New Revision: 209974
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=209974&view=rev
> Log:
> Fix test on platforms where size_t is not 'unsigned long'.
> 
> 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=209974&r1=209973&r2=209974&view=diff
> ==============================================================================
> --- cfe/trunk/test/FixIt/format.m (original)
> +++ cfe/trunk/test/FixIt/format.m Sat May 31 10:06:33 2014
> @@ -89,7 +89,7 @@ void test_fixed_enum_correction(NSString
> typedef __SIZE_TYPE__ size_t;
> enum SomeSize : size_t { IntegerSize = sizeof(int) };
> void test_named_fixed_enum_correction(enum SomeSize x) {
> -  NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has underlying type 'size_t' (aka 'unsigned long')}}
> +  NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has underlying type 'size_t' (aka}}
>   // CHECK: fix-it:"{{.*}}":{92:11-92:13}:"%zu"
> }
> 
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list