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