annotate gcc/testsuite/objc.dg/encode-6-next.m @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test for graceful encoding of const-qualified fields and parameters. */
kono
parents:
diff changeset
2 /* Author: Ziemowit Laski <zlaski@apple.com> */
kono
parents:
diff changeset
3 /* { dg-do compile } */
kono
parents:
diff changeset
4 /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 struct Cxx {
kono
parents:
diff changeset
7 const struct Cxx *next;
kono
parents:
diff changeset
8 };
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 @interface ObjC {
kono
parents:
diff changeset
11 const struct Cxx *obj;
kono
parents:
diff changeset
12 }
kono
parents:
diff changeset
13 - (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d;
kono
parents:
diff changeset
14 @end
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 @implementation ObjC
kono
parents:
diff changeset
17 - (ObjC *)initWithCxx: (struct Cxx *const)c and: (const struct Cxx *)d {
kono
parents:
diff changeset
18 obj = d;
kono
parents:
diff changeset
19 return self;
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21 @end
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 /* { dg-final { scan-assembler "@\[0-9\]+@0:\[0-9\]+\\^{Cxx=\\^{Cxx}}\[0-9\]+r\\^{Cxx=\\^{Cxx}}" } } */