blob: d3d6d79ea82ea31af8e3bb0d569b9ab8a93270a6 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -Wmismatched-tags -verify %s
Douglas Gregor501c5ce2009-05-14 16:41:31 +00002class 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}}