1 // RUN: clang-cc -fsyntax-only -Wmismatched-tags -verify %s 2 class X; // expected-note 2{{here}} 3 typedef struct X * X_t; // expected-warning{{previously declared}} 4 5 template<typename T> struct Y; // expected-note{{previous}} 6 template<class U> class Y { }; // expected-warning{{previously declared}} 7 8 union X { int x; float y; }; // expected-error{{use of 'X' with tag type that does not match previous declaration}} 9