1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
9 @implementation Foo(Whatever)
10 +(float)returnsFloat { return 7.0; }
13 @interface Foo (MoreStuff)
17 @implementation Foo (MoreStuff)
22 +(void)returnsNothing {
24 -(int)callsReturnsInt {
25 float f = [Foo returnsFloat]; // GCC doesn't find this method (which is a bug IMHO).
27 return [Foo returnsInt];
31 int main(void) {return 0;}