1 /* PR 29521 : warning for return with expression in function returning void */ 2 /* { dg-do compile } */ 3 /* { dg-options "" } */ 4 func(void)5void func (void) { } 6 func2(void)7void func2 (void) 8 { 9 return func (); 10 } 11 func3(void)12void func3 (void) 13 { 14 return 1; /* { dg-warning "'return' with a value" } */ 15 } 16