1 // RUN: %clang_cc1 -fsyntax-only -verify %s
9 typedef int A; // expected-note {{declared here}}
12 struct A a; // expected-error {{typedef 'A' cannot be referenced with a struct specifier}}
18 template <class> class A; // expected-note {{declared here}}
21 struct A a; // expected-error {{template 'A' cannot be referenced with a struct specifier}}
45 template <class T> void A();
53 // This should magically be okay; see comment in SemaDecl.cpp.
54 // rdar://problem/7898108