method-return-void.m 235 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 // RUN: %clang_cc1 -Wmethod-signatures -fsyntax-only -verify -Wno-objc-root-class %s @interface Test - (int)foo; @end @implementation Test - (int)foo { return; } // expected-error {{non-void method 'foo' should return a value}} @end