Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / objc.dg / property / dynamic-6.m
blob23a7a890582dc43154d369dcb23bdfe8218ade88
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010.  */
2 /* { dg-do compile } */
4 /* Test case when an accessor from a @property matches a method
5    required by a protocol.  If the @property is @dynamic, then no
6    warning should be generated.  */
8 #include <objc/objc.h>
9 #include <objc/runtime.h>
10 #include <stdlib.h>
12 @protocol Count
13 - (int) count;
14 @end
16 @interface MyRootClass <Count>
18   Class isa;
20 @property int count;
21 @end
23 @implementation MyRootClass
24 /* This @dynamic turns off any warnings for -count and -setCount:.  */
25 @dynamic count;
26 @end