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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [nested-func-3.c] - Rev 154

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

/* Undefined nested function should be a error, whether or not the
   function is called.  Bug 17807.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "" } */
 
void
f (void)
{
  auto int fn (int); /* { dg-error "error: nested function 'fn' declared but never defined" } */
  auto int fn2 (int); /* { dg-error "error: nested function 'fn2' declared but never defined" } */
  sizeof(fn(1));
}
 
void
h (void)
{
  auto int hn (int); /* { dg-error "error: nested function 'hn' declared but never defined" } */
  hn (1);
}
 

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.