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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [attributes/] [proto-attribute-1.m] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* { dg-do compile } */
2
 
3
#include <objc/objc.h>
4
 
5
__attribute ((deprecated))
6
@protocol dep_proto
7
- (int) depprotomth;
8
@end
9
 
10
@interface obj <dep_proto> /* { 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.