blob: 786894cb1d737597d9a0ee328543e9191778515e [file] [log] [blame]
Fariborz Jahanian78e9deb2014-08-22 16:57:26 +00001// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin10 -verify %s
2// rdar://16628028
3
4@interface NSObject
5+ (void)initialize; // expected-note {{method 'initialize' declared here}}
6@end
7
8@interface I : NSObject
9+ (void)initialize; // expected-note {{method 'initialize' declared here}}
10@end
11
12@implementation I
13- (void) Meth {
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}}
16}
17+ (void)initialize {}
18@end
19