Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / objc.dg / attributes / proto-attribute-1.m
bloba852a7a6c2fd66dbdc2dc63428e39eeab4d50c40
1 /* { dg-do compile } */
3 #include <objc/objc.h>
5 __attribute ((deprecated)) 
6 @protocol dep_proto 
7 - (int) depprotomth;
8 @end
10 @interface obj <dep_proto> /* { dg-warning "is deprecated" } */
11
12 @public 
13   int var; 
14
15 - (int) mth;
16 @end
18 @implementation obj
19 - (int) mth {  return var; } 
20 - (int) depprotomth { return var + 1; }
21 @end