11 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 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 8int y; // expected-note 2 {{previous definition is here}}9float y; // expected-error{{redefinition of 'y' with a different type}}10double y; // expected-error{{redefinition of 'y' with a different type}}11