1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
22 a.x = X(); // expected-error {{no setter method 'setX:' for assignment to property}}
32 - (void)setValue : (Y) arg;
37 b.value.data = 17; // expected-error {{not assignable}}
38 b.value.staticData = 17;
46 - (void)method:(B *)b {
47 b.operator+ = 17; // expected-error{{'operator+' is not a valid property name (accessing an object of type 'B *')}}
48 b->operator+ = 17; // expected-error{{'B' does not have a member named 'operator+'}}
54 @interface D { // expected-note 2 {{'D' declared here}}
59 @property int property;
63 d.Forward::property = 17; // expected-error{{property access cannot be qualified with 'Forward::'}}
64 d->Forward::ivar = 12; // expected-error{{instance variable access cannot be qualified with 'Forward::'}}
65 d.D::property = 17; // expected-error{{'D' is not a class, namespace, or enumeration}}
66 d->D::ivar = 12; // expected-error{{'D' is not a class, namespace, or enumeration}}