]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/incomplete-implementation.m
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / SemaObjC / incomplete-implementation.m
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 @interface I
4 - Meth; // expected-note{{method definition for 'Meth' not found}} \
5         // expected-note{{method declared here}}
6 @end
7
8 @implementation  I  // expected-warning{{incomplete implementation}}
9 @end
10
11 @implementation I(CAT)
12 - Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
13 @end
14
15 #pragma GCC diagnostic ignored "-Wincomplete-implementation"
16 @interface I2
17 - Meth; // expected-note{{method declared here}}
18 @end
19
20 @implementation  I2
21 @end
22
23 @implementation I2(CAT)
24 - Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
25 @end
26
27