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

Benjamin Kramer benny.kra at googlemail.com
Sat May 31 08:06:33 PDT 2014


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"
 }
 





More information about the cfe-commits mailing list