typedef-redef.c revision 32b06752d05630996b43c543c80796e1e16dadde
1// RUN: clang-cc -fsyntax-only -verify %s
2
3typedef const int x; // expected-note {{previous definition is here}}
4extern x a;
5typedef int x;  // expected-error {{typedef redefinition with different types}}
6extern x a;
7
8// <rdar://problem/6097585>
9int y; // expected-note 2 {{previous definition is here}}
10float y; // expected-error{{redefinition of 'y' with a different type}}
11double y; // expected-error{{redefinition of 'y' with a different type}}
12