annotate clang/test/SemaObjC/writable-property-in-superclass.m @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
anatofuz
parents:
diff changeset
2 // expected-no-diagnostics
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 @interface MessageStore
anatofuz
parents:
diff changeset
5 @property (assign, readonly) int P;
anatofuz
parents:
diff changeset
6 @end
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 @interface MessageStore (CAT)
anatofuz
parents:
diff changeset
9 @property (assign) int P;
anatofuz
parents:
diff changeset
10 @end
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 @interface NeXTMbox : MessageStore
anatofuz
parents:
diff changeset
13 @end
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 @implementation NeXTMbox
anatofuz
parents:
diff changeset
16 - (void) Meth { self.P = 1; }
anatofuz
parents:
diff changeset
17 @end
anatofuz
parents:
diff changeset
18