aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/format-strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r--test/Sema/format-strings.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c
index 50903b0cf8..1826c7457e 100644
--- a/test/Sema/format-strings.c
+++ b/test/Sema/format-strings.c
@@ -125,3 +125,8 @@ void test9(char *P) {
printf(P, 42);
printf("%n", &x); // expected-warning {{use of '%n' in format string discouraged }}
}
+
+void torture(va_list v8) {
+ vprintf ("%*.*d", v8); // no-warning
+}
+