Add include needed for MSVC.
[clang/acc.git] / test / SemaObjC / method-undef-extension-warn-1.m
blob7ce015f886ecb4ecf11ce3837b286e85f4ed488c
1 // RUN: clang-cc -fsyntax-only -verify %s
3 @interface MyClass
4 @end
6 @protocol P
7 - (void)Pmeth;
8 - (void)Pmeth1;
9 @end
11 // Class extension
12 @interface MyClass () <P>
13 - (void)meth2;
14 @end
16 // Add a category to test that clang does not emit warning for this method.
17 @interface MyClass (Category) 
18 - (void)categoryMethod;
19 @end
21 @implementation MyClass // expected-warning {{incomplete implementation}} \
22                            expected-warning {{method definition for 'meth2' not found}} \
23                            expected-warning {{method definition for 'Pmeth1' not found}}
24 - (void)Pmeth {}
25 @end