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 | 0fdea465617caaa9e1370c82482473f25b14b734 (patch) | |
tree | cba27458d037b7c41077c147c2c05ed0d1b31de1 /test/Sema/format-strings.c | |
parent | d30ef87f34015d18bde20b9632032d0063d761aa (diff) |
Fix test case (incomplete "expected-warning" line)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r-- | test/Sema/format-strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
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() |