blob: 025f65cb35a5498d73a32cf303f01e36de374d7b [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 -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}}