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