URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* Test for warnings for extra format arguments being disabled by
|
/* Test for warnings for extra format arguments being disabled by
|
-Wno-format-extra-args. */
|
-Wno-format-extra-args. */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=gnu99 -Wformat -Wno-format-extra-args" } */
|
/* { dg-options "-std=gnu99 -Wformat -Wno-format-extra-args" } */
|
|
|
#include "format.h"
|
#include "format.h"
|
|
|
void
|
void
|
foo (int i)
|
foo (int i)
|
{
|
{
|
printf ("foo", i);
|
printf ("foo", i);
|
printf ("%1$d", i, i);
|
printf ("%1$d", i, i);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.