Use move-aware auto_vec in map
[official-gcc.git] / gcc / testsuite / objc.dg / encode-6.m
blob9e9e4925c5ea1823e3602b52045f4a7bb489b237
1 /* 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 "" { *-*-* } { "-fnext-runtime" } { "" } } */
5 /* { dg-additional-options "-Wno-objc-root-class" } */
7 struct Cxx {
8   const struct Cxx *next;
9 };
11 @interface ObjC {
12   const struct Cxx *obj;
14 - (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d;
15 @end
17 @implementation ObjC
18 - (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d {
19   obj = d;
20   return self;
22 @end 
24 /* { dg-final { scan-assembler "@\[0-9\]+@0:\[0-9\]+r\\^{Cxx=\\^r{Cxx}}\[0-9\]+\\^r{Cxx}" } } */