[X86][AVX10.2-MINMAX][NFC] Remove NE[P] from intrinsic and instruction (#123272)
[llvm-project.git] / clang / test / SemaObjC / no-gc-weak-test.m
blob3b4c78ec803b5947b242bb263b63333b2a56be24
1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
3 @interface Subtask
5   id _delegate;
7 @property(nonatomic,readwrite,assign)   id __weak       delegate;  // expected-error {{unsafe_unretained property 'delegate' may not also be declared __weak}}
8 @end
10 @implementation Subtask
11 @synthesize delegate = _delegate;
12 @end
15 @interface PVSelectionOverlayView2 
17  id __weak _selectionRect;  // expected-error {{cannot create __weak reference because the current deployment target does not support weak references}} expected-error {{existing instance variable '_selectionRect' for property 'selectionRect' with assign attribute must be __unsafe_unretained}}
20 @property(assign) id selectionRect; // expected-note {{property declared here}}
22 @end
24 @implementation PVSelectionOverlayView2
26 @synthesize selectionRect = _selectionRect; // expected-note {{property synthesized here}}
27 @end