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