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-next.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* This file tests that things are encoded using the gcc-3.3 ABI which is only
2
   used by the NeXT runtime.  */
3
/* Test for graceful encoding of const-qualified fields and parameters.  */
4
/* Author: Ziemowit Laski    */
5
 
6
/* { dg-do compile } */
7
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
8
 
9
struct Cxx {
10
  const struct Cxx *next;
11
};
12
 
13
@interface ObjC {
14
  const struct Cxx *obj;
15
}
16
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d;
17
@end
18
 
19
@implementation ObjC
20
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d {
21
  obj = d;
22
  return self;
23
}
24
@end
25
 
26
/* { dg-final { scan-assembler "@\[0-9\]+@0:\[0-9\]+\\^{Cxx=\\^{Cxx}}\[0-9\]+r\\^{Cxx=\\^{Cxx}}" } } */

powered by: WebSVN 2.1.0

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