OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [format/] [gcc_gfc-2.c] - Rev 399

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR c/35436 */
/* { dg-do compile } */
/* { dg-options "-Wformat" } */
 
typedef void locus[1]; /* { dg-error "array of void" } */
 
void foo(const char*, ...)
  __attribute__((__format__(__gcc_gfc__, 1, 2))); /* { dg-error "locus" } */
 
void bar()
{
  foo("%L", 0); /* { dg-warning "format" }  */
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.