Add include needed for MSVC.
[clang/acc.git] / test / Sema / typedef-redef.c
blob9a1c4887324201ded408108d78e36cf3acde7fac
1 // RUN: clang-cc -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}}