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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [attributes/] [class-attribute-2.m] - Blame information for rev 774

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
@interface DeprecatedClass
7
{
8
  Class isa;
9
}
10
+ (id) new;
11
@end
12
 
13
__attribute__ ((deprecated))
14
@implementation DeprecatedClass /* { dg-warning "prefix attributes are ignored for implementations" } */
15
+ (id) new { return nil; }
16
@end
17
 
18
void function (void)
19
{
20
  DeprecatedClass *object = [DeprecatedClass new]; /* { dg-warning "is deprecated" } */
21
}

powered by: WebSVN 2.1.0

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