diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-12 23:09:55 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-12 23:09:55 +0000 |
commit | 94a5f6f9497702af11f249b383ec3fe45169e058 (patch) | |
tree | b490929491b92147c47184b1954aada16e21a03c /clang/test/Sema/format-strings.c | |
parent | 243b4add9a1e60eeae53968526cce09a27814d32 (diff) | |
download | bcm5719-llvm-94a5f6f9497702af11f249b383ec3fe45169e058.tar.gz bcm5719-llvm-94a5f6f9497702af11f249b383ec3fe45169e058.zip |
Fix test case (incomplete "expected-warning" line)
llvm-svn: 62119
Diffstat (limited to 'clang/test/Sema/format-strings.c')
-rw-r--r-- | clang/test/Sema/format-strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index 19c29db343d..9e558e93acf 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -34,7 +34,7 @@ void check_string_literal( FILE* fp, const char* s, char *buf, ... ) { void check_conditional_literal(const char* s, int i) { printf(i == 1 ? "yes" : "no"); // no-warning printf(i == 0 ? (i == 1 ? "yes" : "no") : "dont know"); // no-warning - printf(i == 0 ? (i == 1 ? s : "no") : "dont know"); // expected-warning + printf(i == 0 ? (i == 1 ? s : "no") : "dont know"); // expected-warning{{format string is not a string literal}} } void check_writeback_specifier() |