OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [attributes/] [proto-attribute-1.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* { dg-do compile } */
2
 
3
#include 
4
 
5
__attribute ((deprecated))
6
@protocol dep_proto
7
- (int) depprotomth;
8
@end
9
 
10
@interface obj  /* { dg-warning "is deprecated" } */
11
{
12
@public
13
  int var;
14
}
15
- (int) mth;
16
@end
17
 
18
@implementation obj
19
- (int) mth {  return var; }
20
- (int) depprotomth { return var + 1; }
21
@end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.