1 /* Test for spurious "may or may not return a value" warnings. */
3 /* { dg-do compile } */
4 /* { dg-options "-Wreturn-type -Wextra" } */
6 #include "../objc-obj-c++-shared/TestsuiteObject.h"
8 @interface Foo: TestsuiteObject
18 return [TestsuiteObject new];
19 return; /* { dg-warning "'return' with no value, in function returning non-void" } */
25 } /* { dg-bogus "'return' with no value, in function returning non-void" } */