// RUN: %clang_cc1 -fsyntax-only -verify %s
typedef int INT;
typedef INT REALLY_INT; // expected-note {{previous definition is here}}
typedef REALLY_INT REALLY_REALLY_INT;
typedef REALLY_INT BOB;
typedef float REALLY_INT; // expected-error{{typedef redefinition with different types ('float' vs 'INT' (aka 'int'))}}
;
; // expected-note{{previous definition is here}}
typedef int Y; // expected-error{{typedef redefinition with different types ('int' vs 'Y')}}
typedef int Y2; // expected-note{{declared here}}
; // expected-error{{definition of type 'Y2' conflicts with typedef of the same name}}
void ; // expected-note{{previous definition is here}}
typedef int f; // expected-error{{redefinition of 'f' as different kind of symbol}}
typedef int f2; // expected-note{{previous definition is here}}
void ; // expected-error{{redefinition of 'f2' as different kind of symbol}}
typedef struct s s;
typedef int I;
typedef int I;
typedef I I;
;
// PR5874
typedef T // expected-error {{function definition declared 'typedef'}}
int k = ;
int k2 = k;