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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [encode-1.mm] - Blame information for rev 750

Go to most recent revision | Details | Compare with Previous | View Log

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