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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [attributes/] [class-attribute-2.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
@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" } */
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.