Fix range in printf warnings for invalid conversion specifiers.
llvm-svn: 120735
diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c
index ba5fa8a..c51dafd 100644
--- a/clang/test/Sema/format-strings.c
+++ b/clang/test/Sema/format-strings.c
@@ -174,6 +174,7 @@
printf("%.0Lf", (long double) 1.0); // no-warning
printf("%c\n", "x"); // expected-warning{{conversion specifies type 'int' but the argument has type 'char *'}}
printf("%c\n", 1.23); // expected-warning{{conversion specifies type 'int' but the argument has type 'double'}}
+ printf("Format %d, is %! %f", 1, 2, 4.4); // expected-warning{{invalid conversion specifier '!'}}
}
typedef unsigned char uint8_t;