diff options
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r-- | test/Sema/format-strings.c | 5 |
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 +} + |