]> granicus.if.org Git - clang/commitdiff
Fix test case.
authorTed Kremenek <kremenek@apple.com>
Tue, 16 Feb 2010 01:47:05 +0000 (01:47 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 16 Feb 2010 01:47:05 +0000 (01:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96311 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/format-strings.c

index ab37e3abdd6419c5f7bbb958730a4574c26cfd1d..8c2788d3a25c0bb7419467774361c196543779b4 100644 (file)
@@ -186,7 +186,7 @@ void test11(void *p, char *s) {
 void test12() {
   unsigned char buf[4];
   printf ("%.4s\n", buf); // no-warning
-  printf ("%.4s\n", &buf); // expected-result{{conversion specifies type 'char *' but the argument has type 'unsigned char (*)[4]'}}
+  printf ("%.4s\n", &buf); // expected-warning{{conversion specifies type 'char *' but the argument has type 'unsigned char (*)[4]'}}
 }
 
 typedef struct __aslclient *aslclient;