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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [attributes/] [method-attribute-3.m] - Blame information for rev 704

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* { dg-do compile } */
2
 
3
#include "../../objc-obj-c++-shared/TestsuiteObject.h"
4
 
5
@interface obj : TestsuiteObject {
6
@public
7
  int var;
8
}
9
- (int) vargsn: (int) count, ... __attribute__((deprecated));
10
@end
11
 
12
@implementation obj
13
- (int) vargsn: (int) count, ...
14
{
15
  return 0;
16
}
17
@end
18
 
19
int foo (void)
20
{
21
  obj *p = [obj new];
22
 
23
  return [p vargsn:0];  /* { dg-warning "'vargsn:' is deprecated .declared at " } */
24
}

powered by: WebSVN 2.1.0

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