[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / SemaObjC / property-expression-error.m
blob60a4966a0d956f47c6a48f6c44549236203837ce
1 // RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
3 @interface AddressMyProperties 
5   unsigned index;
7 @property unsigned index;
8 @end
10 @implementation AddressMyProperties
11 @synthesize index;
12 @end
14 int main(void) {
15         AddressMyProperties *object;
16         &object.index; // expected-error {{address of property expression requested}}
17         return 0;
20 typedef int Foo;
21 void test(void) {
22   Foo.x;        // expected-error {{expected identifier or '('}}