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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [gcc/] [testsuite/] [obj-c++.dg/] [encode-1.mm] - Diff between revs 308 and 519

Only display areas with differences | Details | Blame | View Log

Rev 308 Rev 519
/* Test for graceful encoding of const-qualified fields and parameters.  */
/* Test for graceful encoding of const-qualified fields and parameters.  */
/* Author: Ziemowit Laski    */
/* Author: Ziemowit Laski    */
/* { dg-do compile } */
/* { dg-do compile } */
struct Cxx {
struct Cxx {
  const struct Cxx *next;
  const struct Cxx *next;
};
};
@interface ObjC {
@interface ObjC {
  const struct Cxx *obj;
  const struct Cxx *obj;
}
}
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d;
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d;
@end
@end
@implementation ObjC
@implementation ObjC
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d {
- (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d {
  obj = d;
  obj = d;
  return self;
  return self;
}
}
@end
@end
/* { dg-final { scan-assembler "@\[0-9\]+@0:\[0-9\]+r\\^{Cxx=\\^r{Cxx}}\[0-9\]+\\^r{Cxx}" } } */
/* { 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.