Douglas Gregor | 501c5ce | 2009-05-14 16:41:31 +0000 | [diff] [blame] | 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}} |
Douglas Gregor | ed4ec8f | 2009-05-03 17:18:57 +0000 | [diff] [blame] | 4 | |
Douglas Gregor | 501c5ce | 2009-05-14 16:41:31 +0000 | [diff] [blame] | 5 | template<typename T> struct Y; // expected-note{{previous}} |
| 6 | template<class U> class Y { }; // expected-warning{{previously declared}} |
Douglas Gregor | ed4ec8f | 2009-05-03 17:18:57 +0000 | [diff] [blame] | 7 | |
| 8 | union X { int x; float y; }; // expected-error{{use of 'X' with tag type that does not match previous declaration}} |