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] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* Undefined nested function should be a error, whether or not the
2
   function is called.  Bug 17807.  */
3
/* Origin: Joseph Myers <joseph@codesourcery.com> */
4
/* { dg-do compile } */
5
/* { dg-options "" } */
6
 
7
void
8
f (void)
9
{
10
  auto int fn (int); /* { dg-error "error: nested function 'fn' declared but never defined" } */
11
  auto int fn2 (int); /* { dg-error "error: nested function 'fn2' declared but never defined" } */
12
  sizeof(fn(1));
13
}
14
 
15
void
16
h (void)
17
{
18
  auto int hn (int); /* { dg-error "error: nested function 'hn' declared but never defined" } */
19
  hn (1);
20
}

powered by: WebSVN 2.1.0

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