2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
2009-07-22 08:43:08 +08:00
|
|
|
int f(int a) { return 0; } // expected-note {{previous definition is here}}
|
2008-04-21 10:02:58 +08:00
|
|
|
int f(int);
|
2009-07-22 08:43:08 +08:00
|
|
|
int f(int a) { return 0; } // expected-error {{redefinition of 'f'}}
|
2008-04-21 10:02:58 +08:00
|
|
|
|
2009-01-24 00:23:13 +08:00
|
|
|
// <rdar://problem/6097326>
|
|
|
|
int foo(x) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int x = 1;
|