redefinition.c revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
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