// RUN: %clang_cc1 %s -verify -fsyntax-only
structsimple{int i;};voidf(void){struct simple s[1];
s->i =1;}typedefintx;struct S {int x;
x z;};voidg(void){struct S s[1];
s->x =1;
s->z =2;}intPR17762(struct simple c){return c->i;// expected-error {{member reference type 'struct simple' is not a pointer; did you mean to use '.'?}}
}