1 // RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin10 -verify %s
4 + (void)initialize; // expected-note 2 {{method 'initialize' declared here}}
7 @interface I : NSObject
8 + (void)initialize; // expected-note {{method 'initialize' declared here}}
9 + (void)SomeRandomMethod;
14 [I initialize]; // expected-warning {{explicit call to +initialize results in duplicate call to +initialize}}
15 [NSObject initialize]; // expected-warning {{explicit call to +initialize results in duplicate call to +initialize}}
20 + (void)SomeRandomMethod { // expected-note {{method 'SomeRandomMethod' declared here}}
21 [super initialize]; // expected-warning {{explicit call to [super initialize] should only be in implementation of +initialize}}