mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 20:30:57 -05:00
12 lines
294 B
C
12 lines
294 B
C
// 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);
|
|
}
|