From: Ted Kremenek Date: Mon, 12 Jan 2009 23:09:55 +0000 (+0000) Subject: Fix test case (incomplete "expected-warning" line) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fdea465617caaa9e1370c82482473f25b14b734;p=clang Fix test case (incomplete "expected-warning" line) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62119 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c index 19c29db343..9e558e93ac 100644 --- a/test/Sema/format-strings.c +++ b/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()