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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [encode-6.m] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 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.