diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-27 08:34:51 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-27 08:34:51 +0000 |
commit | 09597b461d806e7853aee6506a7bb5303dd5f24c (patch) | |
tree | b1bc4b460bb64b00ecdaa2d8c9f1ea4dccf39cdb /clang/test/SemaObjC/format-strings-objc.m | |
parent | fb2a0f20dde751e87e987272d7b0ceb398182e3f (diff) | |
download | bcm5719-llvm-09597b461d806e7853aee6506a7bb5303dd5f24c.tar.gz bcm5719-llvm-09597b461d806e7853aee6506a7bb5303dd5f24c.zip |
Fix crasher caused by setting a bit in a possibly empty bitvector while
doing printf format string checking. This is a recent regression.
llvm-svn: 97318
Diffstat (limited to 'clang/test/SemaObjC/format-strings-objc.m')
-rw-r--r-- | clang/test/SemaObjC/format-strings-objc.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/format-strings-objc.m b/clang/test/SemaObjC/format-strings-objc.m index 7abfe962235..1fcc34f695d 100644 --- a/clang/test/SemaObjC/format-strings-objc.m +++ b/clang/test/SemaObjC/format-strings-objc.m @@ -50,3 +50,8 @@ void rdar_7068334() { printf("%i ",test); // expected-warning{{conversion specifies type 'int' but the argument has type 'long long'}} NSLog(@"%i ",test); // expected-warning{{conversion specifies type 'int' but the argument has type 'long long'}} } + +// <rdar://problem/7697748> +void rdar_7697748() { + NSLog(@"%@!"); // expected-warning{{more '%' conversions than data arguments}} +} |