1 /* Test for spurious "may or may not return a value" warnings. */
2 /* { dg-do compile } */
3 /* { dg-options "-Wreturn-type -Wextra" } */
5 #include "../objc-obj-c++-shared/TestsuiteObject.h"
7 @interface Foo: TestsuiteObject
17 return [TestsuiteObject new];
18 return; /* { dg-error "return.statement with no value" } */