1// RUN: %clang_cc1 %s -fsyntax-only -verify
2int f(int a) { return 0; } // expected-note {{previous definition is here}}
3int f(int);
4int f(int a) { return 0; } // expected-error {{redefinition of 'f'}}
5
6// <rdar://problem/6097326>
7int foo(x) {
8  return 0;
9}
10int x = 1;
11
12// <rdar://problem/6880464>
13extern inline int g(void) { return 0; } // expected-note{{previous definition}}
14int g(void) { return 0; } // expected-error{{redefinition of a 'extern inline' function 'g' is not supported in C99 mode}}
15