[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / typedef-redef.c
blob025f65cb35a5498d73a32cf303f01e36de374d7b
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 typedef const int x; // expected-note {{previous definition is here}}
4 extern x a;
5 typedef int x; // expected-error {{typedef redefinition with different types}}
6 extern x a;
8 // <rdar://problem/6097585>
9 int y; // expected-note 2 {{previous definition is here}}
10 float y; // expected-error{{redefinition of 'y' with a different type}}
11 double y; // expected-error{{redefinition of 'y' with a different type}}