* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / nested-func-3.c
blobc4c016cfc4b79ba71b087564ece221213197eb44
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 "" } */
7 void
8 f (void)
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));
15 void
16 h (void)
18 auto int hn (int); /* { dg-error "error: nested function 'hn' declared but never defined" } */
19 hn (1);