Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaObjC/arc-no-runtime.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
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 |