summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2014-11-12 22:48:38 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2014-11-12 22:48:38 +0000
commitc427e3de774c8f6d164ccc1b6054c94155b788b1 (patch)
tree7fe67da6628d349a51c38cc902a1b301407fb035 /clang/test/SemaObjC
parent800821a3b2b0e77436e9e3a5182bae80f728774d (diff)
downloadbcm5719-llvm-c427e3de774c8f6d164ccc1b6054c94155b788b1.tar.gz
bcm5719-llvm-c427e3de774c8f6d164ccc1b6054c94155b788b1.zip
Update the tests to handle proper result type of (?:)
llvm-svn: 221824
Diffstat (limited to 'clang/test/SemaObjC')
-rw-r--r--clang/test/SemaObjC/format-strings-objc.m2
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() {
OpenPOWER on IntegriCloud