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 format checking not giving tree checking errors. */
|
/* Test for format checking not giving tree checking errors. */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wformat" } */
|
/* { dg-options "-Wformat" } */
|
|
|
#include "format.h"
|
#include "format.h"
|
|
|
void
|
void
|
foo (int t)
|
foo (int t)
|
{
|
{
|
printf ("%*d", u, t); /* { dg-error "undeclared|function" "u undeclared error" } */
|
printf ("%*d", u, t); /* { dg-error "undeclared|function" "u undeclared error" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.