[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / SemaObjC / ivar-sem-check-2.m
blobb1e1f2c2efad1618bc97f8074d8b07aa93e54331
1 // RUN: %clang_cc1  -fsyntax-only -verify %s
3 @interface Super  {
4   id value2; // expected-note {{previously declared 'value2' here}}
5
6 @property(retain) id value;
7 @property(retain) id value1;
8 @property(retain) id prop;
9 @end
11 @interface Sub : Super 
13   id value; 
15 @end
17 @implementation Sub
18 @synthesize value; // expected-note {{previous use is here}}
19 @synthesize value1=value; // expected-error {{synthesized properties 'value1' and 'value' both claim instance variable 'value'}} 
20 @synthesize prop=value2;  // expected-error {{property 'prop' attempting to use instance variable 'value2' declared in super class 'Super'}}
21 @end