blob: 00778816920e2cceb64023e7a1a2f7e194232a27 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian76056182009-09-29 20:28:06 +00002
3typedef const int cInt;
4
5void f (int);
6void f (const int); // redecl
7
8void f (int) { } // expected-note {{previous definition is here}}
9void f (cInt) { } // expected-error {{redefinition of 'f'}}
10