Mercurial > hg > CbC > CbC_llvm
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 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 // expected-no-diagnostics | |
3 | |
4 @interface MessageStore | |
5 @property (assign, readonly) int P; | |
6 @end | |
7 | |
8 @interface MessageStore (CAT) | |
9 @property (assign) int P; | |
10 @end | |
11 | |
12 @interface NeXTMbox : MessageStore | |
13 @end | |
14 | |
15 @implementation NeXTMbox | |
16 - (void) Meth { self.P = 1; } | |
17 @end | |
18 |