2011-02-14 23:59:16 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
@interface I
|
2011-07-28 23:19:50 +00:00
|
|
|
- Meth; // expected-note{{method definition for 'Meth' not found}} \
|
2012-02-27 22:55:11 +00:00
|
|
|
// expected-note{{method 'Meth' declared here}}
|
2011-02-14 23:59:16 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I // expected-warning{{incomplete implementation}}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I(CAT)
|
2011-07-28 23:19:50 +00:00
|
|
|
- Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
|
2011-02-14 23:59:16 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wincomplete-implementation"
|
|
|
|
@interface I2
|
2012-02-27 22:55:11 +00:00
|
|
|
- Meth; // expected-note{{method 'Meth' declared here}}
|
2011-02-14 23:59:16 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I2
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I2(CAT)
|
2011-07-28 23:19:50 +00:00
|
|
|
- Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
|
2011-02-14 23:59:16 +00:00
|
|
|
@end
|
|
|
|
|
2011-10-27 00:09:34 +00:00
|
|
|
@interface Q
|
|
|
|
@end
|
|
|
|
|
|
|
|
// rdar://10336158
|
|
|
|
@implementation Q
|
|
|
|
|
|
|
|
__attribute__((visibility("default")))
|
|
|
|
@interface QN
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@end
|
2011-02-14 23:59:16 +00:00
|
|
|
|