]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/incomplete-implementation.m
Vendor import of clang trunk r130700:
[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 @end
6
7 @implementation  I  // expected-warning{{incomplete implementation}}
8 @end
9
10 @implementation I(CAT)
11 - Meth {return 0;}
12 @end
13
14 #pragma GCC diagnostic ignored "-Wincomplete-implementation"
15 @interface I2
16 - Meth;
17 @end
18
19 @implementation  I2
20 @end
21
22 @implementation I2(CAT)
23 - Meth {return 0;}
24 @end
25
26