1 /* 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 "" } */
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" } */
18 auto int hn (int); /* { dg-error "error: nested function 'hn' declared but never defined" } */