[cfe-commits] r62119 - /cfe/trunk/test/Sema/format-strings.c

Ted Kremenek kremenek at apple.com
Mon Jan 12 15:09:55 PST 2009


Author: kremenek
Date: Mon Jan 12 17:09:55 2009
New Revision: 62119

URL: http://llvm.org/viewvc/llvm-project?rev=62119&view=rev
Log:
Fix test case (incomplete "expected-warning" line)

Modified:
    cfe/trunk/test/Sema/format-strings.c

Modified: cfe/trunk/test/Sema/format-strings.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings.c?rev=62119&r1=62118&r2=62119&view=diff

==============================================================================
--- cfe/trunk/test/Sema/format-strings.c (original)
+++ cfe/trunk/test/Sema/format-strings.c Mon Jan 12 17:09:55 2009
@@ -34,7 +34,7 @@
 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()





More information about the cfe-commits mailing list