Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 7605618 | 2009-09-29 20:28:06 +0000 | [diff] [blame] | 2 | |
3 | typedef const int cInt; | ||||
4 | |||||
5 | void f (int); | ||||
6 | void f (const int); // redecl | ||||
7 | |||||
8 | void f (int) { } // expected-note {{previous definition is here}} | ||||
9 | void f (cInt) { } // expected-error {{redefinition of 'f'}} | ||||
10 |