1 // RUN: clang-cc -fsyntax-only -verify %s
11 void test(X
* xp
, X x
) {
14 x
.E
; // expected-error{{cannot refer to type member 'E' with '.'}}
15 xp
->E
; // expected-error{{cannot refer to type member 'E' with '->'}}
16 int i3
= x
.Enumerator
;
17 int i4
= xp
->Enumerator
;
31 return b
->f0
->f0
; // expected-error{{member reference base type 'struct A *()' is not a structure or union}} \
32 // expected-note{{perhaps you meant to call this function}}