URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
/* Test for warnings for missing format attributes. Don't warn if no
|
/* Test for warnings for missing format attributes. Don't warn if no
|
relevant parameters for a format attribute; see c/1017. */
|
relevant parameters for a format attribute; see c/1017. */
|
/* Origin: Joseph Myers */
|
/* Origin: Joseph Myers */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wmissing-format-attribute" } */
|
/* { dg-options "-Wmissing-format-attribute" } */
|
|
|
#include
|
#include
|
#include
|
#include
|
|
|
void
|
void
|
foo (int i, ...)
|
foo (int i, ...)
|
{
|
{
|
va_list ap;
|
va_list ap;
|
va_start (ap, i);
|
va_start (ap, i);
|
vprintf ("Foo %s bar %s", ap); /* { dg-bogus "candidate" "bogus printf attribute warning" } */
|
vprintf ("Foo %s bar %s", ap); /* { dg-bogus "candidate" "bogus printf attribute warning" } */
|
va_end (ap);
|
va_end (ap);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.