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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [obj-c++.dg/] [encode-1.mm] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Test for graceful encoding of const-qualified fields and parameters.  */
2
/* Author: Ziemowit Laski    */
3
 
4
/* { dg-do compile } */
5
 
6
struct Cxx {
7
  const struct Cxx *next;
8
};
9
 
10
@interface ObjC {
11
  const struct Cxx *obj;
12
}
13
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d;
14
@end
15
 
16
@implementation ObjC
17
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d {
18
  obj = d;
19
  return self;
20
}
21
@end
22
 
23
/* { 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.