]> granicus.if.org Git - clang/commitdiff
Fix test on platforms where size_t is not 'unsigned long'.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 31 May 2014 15:06:33 +0000 (15:06 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 31 May 2014 15:06:33 +0000 (15:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209974 91177308-0d34-0410-b5e6-96231b3b80d8

test/FixIt/format.m

index fea8465485d0fd9474ab2945cbf2c1417d56c6f6..d07ee363b4a8af3a73fe4b33246e59bb189da20f 100644 (file)
@@ -89,7 +89,7 @@ void test_fixed_enum_correction(NSStringEncoding x) {
 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"
 }