Merge trunk version 201119 into gupc branch.
[official-gcc.git] / gcc / testsuite / objc.dg / attributes / method-attribute-3.m
blob1af1d117db4fd2f6a981db41fcf40aaf2871588b
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 .declared at " } */