diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2014-11-14 22:09:15 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2014-11-14 22:09:15 +0000 |
commit | 5f951ee8bd723d5fcfeacf6d79b4ebf074069f85 (patch) | |
tree | aa5abbcc170b2a7be5446a677f65d6483edc18c4 /clang/test/SemaObjC | |
parent | d38341e9425599d0d1e80310cd9da97e2da1d708 (diff) | |
download | bcm5719-llvm-5f951ee8bd723d5fcfeacf6d79b4ebf074069f85.tar.gz bcm5719-llvm-5f951ee8bd723d5fcfeacf6d79b4ebf074069f85.zip |
Recommit r222044 with a test fix - it does not make sense to hunt
for a typedef before arithmetic conversion in all rare corner cases.
llvm-svn: 222049
Diffstat (limited to 'clang/test/SemaObjC')
-rw-r--r-- | clang/test/SemaObjC/format-strings-objc.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/format-strings-objc.m b/clang/test/SemaObjC/format-strings-objc.m index 49567a710c3..f4c528cc7ac 100644 --- a/clang/test/SemaObjC/format-strings-objc.m +++ b/clang/test/SemaObjC/format-strings-objc.m @@ -243,7 +243,7 @@ void testByValueObjectInFormat(Foo *obj) { // <rdar://problem/13557053> void testTypeOf(NSInteger dW, NSInteger dH) { - NSLog(@"dW %d dH %d",({ __typeof__(dW) __a = (dW); __a < 0 ? -__a : __a; }),({ __typeof__(dH) __a = (dH); __a < 0 ? -__a : __a; })); // expected-warning 2 {{values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}} + NSLog(@"dW %d dH %d",({ __typeof__(dW) __a = (dW); __a < 0 ? -__a : __a; }),({ __typeof__(dH) __a = (dH); __a < 0 ? -__a : __a; })); // expected-warning 2 {{format specifies type 'int' but the argument has type 'long'}} } void testUnicode() { |