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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [encode-6-next.m] - Blame information for rev 704

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* Test for graceful encoding of const-qualified fields and parameters.  */
2
/* Author: Ziemowit Laski  <zlaski@apple.com>  */
3
/* { dg-do compile } */
4
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
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\]+\\^{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.