1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 typedef struct NSSize {
10 typedef __attribute__((__ext_vector_type__(2))) float simd_float2;
15 @property NSSize size;
16 @property simd_float2 f2;
21 f.size.width = 2.2; // expected-error {{expression is not assignable}}
22 f.size.inner.dim = 200; // expected-error {{expression is not assignable}}
31 - (void)MyView_sharedInit {
32 self.size.width = 2.2; // expected-error {{expression is not assignable}}
37 // clang used to crash compiling this code.
39 simd_float2 *v = &f.f2.xy; // expected-error {{cannot take the address of an rvalue}}