1 // RUN: %clang_cc1 -fsyntax-only -verify %s
8 - (void) setSetterOnly : (int) arg;
11 int func (int arg, Subclass *x) {
12 if (x.setterOnly) { // expected-error {{expected getter method not found on object of type 'Subclass *'}}
15 func(x.setterOnly + 1, x); // expected-error {{expected getter method not found on object of type 'Subclass *'}}
16 int i = x.setterOnly + 1; // expected-error {{expected getter method not found on object of type 'Subclass *'}}
17 return x.setterOnly + 1; // expected-error {{expected getter method not found on object of type 'Subclass *'}}