Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaObjC/arc-no-runtime.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fobjc-arc -verify -Wno-objc-root-class %s |
2 | |
3 // rdar://problem/9150784 | |
4 void test(void) { | |
5 __weak id x; // expected-error {{cannot create __weak reference because the current deployment target does not support weak references}} | |
6 __weak void *v; // expected-warning {{'__weak' only applies to Objective-C object or block pointer types}} | |
7 } | |
8 | |
9 @interface A | |
10 @property (weak) id testObjectWeakProperty; // expected-note {{declared here}} | |
11 @end | |
12 | |
13 @implementation A | |
14 // rdar://9605088 | |
15 @synthesize testObjectWeakProperty; // expected-error {{cannot synthesize weak property because the current deployment target does not support weak references}} | |
16 @end |