blob: 4b6cef6dd2bfade6d03ac94ae34447d3a4543660 [file] [log] [blame]
Douglas Gregor501c5ce2009-05-14 16:41:31 +00001// RUN: clang-cc -fsyntax-only -Wmismatched-tags -verify %s
2class X; // expected-note 2{{here}}
3typedef struct X * X_t; // expected-warning{{previously declared}}
Douglas Gregored4ec8f2009-05-03 17:18:57 +00004
Douglas Gregor501c5ce2009-05-14 16:41:31 +00005template<typename T> struct Y; // expected-note{{previous}}
6template<class U> class Y { }; // expected-warning{{previously declared}}
Douglas Gregored4ec8f2009-05-03 17:18:57 +00007
8union X { int x; float y; }; // expected-error{{use of 'X' with tag type that does not match previous declaration}}