summaryrefslogtreecommitdiffstats
path: root/test/Sema/format-attr-pr4470.c
blob: 374d8b3af03f6aee703f62976c1bf809bebcfb83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify -Wformat=2 %s

#include <stdarg.h>
int vprintf(const char *, va_list);

const char *foo(const char *format) __attribute__((format_arg(1)));

void __attribute__((format(printf, 1, 0)))
foo2(const char *fmt, va_list va)
{
        vprintf(foo(fmt), va);
}
OpenPOWER on IntegriCloud