Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
4d374d4a4832a01d5d3b75c59cb1567e60df41e7
/
.
/
test
/
Sema
/
format-attr-pr4470.c
blob: cba3adf1d6de4cb8b50a88cd9ac4029e62ce39b8 [
file
] [
log
] [
blame
]
// RUN: clang-cc -fsyntax-only -verify -Wformat=2 %s
#include
<stdio.h>
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
);
}