This is the mail archive of the
mailing list for the GCC project.
On Jun 9, 2005, at 4:03 PM, Joseph S. Myers wrote:
On Thu, 9 Jun 2005, Diego Novillo wrote:And the return value of printf is ignored too, which most people forget
* gcc.dg/pr21982-1.c: New test.
Apart from the issues I listed with the values or or pointed to by the
second printf being affected by the first, I think the test needs to
making sure that %n inhibits merging or at least the effect of this
the integer pointed to by %n gets only the number of bytes from the
printf in which it appears, making sure that $ operand numbers inhibit
merging or are adjusted to allow for the new operand numbers, and
sure that if the first printf has excess arguments
printf("%d ", 1, i++);
the correct arguments are printed (in this case "1 3\n") but all