Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/obj-c++.dg/encode-1-next.mm @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* This file tests that things are encoded using the gcc-3.3 ABI which is only used by the NeXT runtime. */ /* Test for graceful encoding of const-qualified fields and parameters. */ /* Author: Ziemowit Laski <zlaski@apple.com> */ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */ 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\]+\\^{Cxx=\\^{Cxx}}\[0-9\]+r\\^{Cxx=\\^{Cxx}}" } } */