OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [objc.dg/] [encode-6.m] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Test for graceful encoding of const-qualified fields and parameters.  */
2
/* Author: Ziemowit Laski  <zlaski@apple.com>  */
3
/* { dg-do compile } */
4
 
5
struct Cxx {
6
  const struct Cxx *next;
7
};
8
 
9
@interface ObjC {
10
  const struct Cxx *obj;
11
}
12
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d;
13
@end
14
 
15
@implementation ObjC
16
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d {
17
  obj = d;
18
  return self;
19
}
20
@end
21
 
22
/* { dg-final { scan-assembler "@\[0-9\]+@0:\[0-9\]+r\\^{Cxx=\\^r{Cxx}}\[0-9\]+\\^r{Cxx}" } } */

powered by: WebSVN 2.1.0

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