2015-05-05 Yvan Roux <yvan.roux@linaro.org>
[official-gcc.git] / gcc / testsuite / obj-c++.dg / attributes / method-attribute-3.mm
blob48cec44117e4a0878f6fe5ef071573d052ff004c
1 /* { dg-do compile } */
3 #include "../../objc-obj-c++-shared/TestsuiteObject.h"
5 @interface obj : TestsuiteObject {
6 @public 
7   int var;
9 - (int) vargsn: (int) count, ... __attribute__((deprecated));
10 @end
12 @implementation obj
13 - (int) vargsn: (int) count, ... 
15   return 0;
17 @end 
19 int foo (void)
21   obj *p = [obj new];
22   
23   return [p vargsn:0];  /* { dg-warning "'vargsn:' is deprecated" } */