/* Copyright (C) 2000 Free Software Foundation.
Ensure all expected transformations of builtin printf occur and
that we honor side effects in the arguments.
Written by Kaveh R. Ghazi, 12/4
#include
#include
int
main (void)
{
#define test(ret, args...) \
printf (args); \
if (printf (args) != ret) \
abort ();
test (5, "hello");
test (6, "hello\n");
te