URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [encode-6.m] - Rev 309
Compare with Previous | Blame | View Log
/* Test for graceful encoding of const-qualified fields and parameters. */ /* Author: Ziemowit Laski <zlaski@apple.com> */ /* { dg-do compile } */ struct Cxx { const struct Cxx *next; }; @interface ObjC { const struct Cxx *obj; } - (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d; @end @implementation ObjC - (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d { obj = d; return self; } @end /* { dg-final { scan-assembler "@\[0-9\]+@0:\[0-9\]+r\\^{Cxx=\\^r{Cxx}}\[0-9\]+\\^r{Cxx}" } } */