#include "format.h"
typedef long long __gcc_host_wide_int__;
extern int asm_fprintf (const char *, ...) __attribute__ ((__format__ (__asm_fprintf__, 1, 2))) __attribute__ ((__nonnull__));
void
foo (int i, int i1, int i2, unsigned int u, double d, char *s, void *p,
int *n, short int *hn, long int l, unsigned long int ul,
long int *ln, long double ld, wint_t lc, wchar_t *ls, llong ll,
ullong ull, unsigned int *un, const int *cn, signed char *ss,
unsigned char *us, const signed char *css, unsigned int u1,
unsigned int u2)
{
asm_fprintf ("%%");
asm_fprintf ("%d%i%o%u%x%X%c%s%%", i, i, u, u, u, u, i, s);
asm_fprintf ("%ld%li%lo%lu%lx%lX", l, l, ul, ul, ul, ul);
asm_fprintf ("%lld%lli%llo%llu%llx%llX", ll, ll, ull, ull, ull, ull);
asm_fprintf ("%-d%-i%-o%-u%-x%-X%-c%-s", i, i, u, u, u, u, i, s);
asm_fprintf ("% d% i\n", i, i);
asm_fprintf ("%#o%#x%#X", u, u, u);
asm_fprintf ("%08d%08i%08o%08u%08x%08X", i, i, u, u, u, u);
asm_fprintf ("%d\n", i);
asm_fprintf ("%+d\n", i);
asm_fprintf ("%3d\n", i);
asm_fprintf ("%-3d\n", i);
asm_fprintf ("%.7d\n", i);
asm_fprintf ("%+9.4d\n", i);
asm_fprintf ("%.3ld\n", l);
asm_fprintf ("%d %lu\n", i, ul);
asm_fprintf ("%O%R%I%L%U%@");
asm_fprintf ("%r", i);
asm_fprintf ("%wd%wi%wo%wu%wx%wX", ll, ll, ull, ull, ull, ull);
asm_fprintf ("%f\n", d);
asm_fprintf ("%e\n", d);
asm_fprintf ("%E\n", d);
asm_fprintf ("%g\n", d);
asm_fprintf ("%G\n", d);
asm_fprintf ("%p\n", p);
asm_fprintf ("%n\n", n);
asm_fprintf ("%hd\n", i);
asm_fprintf ("%d", l);
asm_fprintf ("%wd", l);
asm_fprintf ("%d", ll);
asm_fprintf ("%*d\n", i1, i);
asm_fprintf ("%.*d\n", i2, i);
asm_fprintf ("%*.*ld\n", i1, i2, l);
asm_fprintf ("%ld", i);
asm_fprintf ("%s", n);
asm_fprintf ("%d%d", i);
asm_fprintf ("%d", i, i);
asm_fprintf ("");
asm_fprintf ("\0");
asm_fprintf ("%d\0", i);
asm_fprintf ("%d\0%d", i, i);
asm_fprintf (NULL);
asm_fprintf ("%");
asm_fprintf ("%++d", i);
asm_fprintf ((const char *)L"foo");
asm_fprintf ("%s", (char *)0);
printf ("%d\n", ll);
}