Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / typedef-redef.c
blob5fd3b4bd7d40e73caa445c1cf3695dedb2ca0581
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 int y; // expected-note 2 {{previous definition is here}}
9 float y; // expected-error{{redefinition of 'y' with a different type}}
10 double y; // expected-error{{redefinition of 'y' with a different type}}