redefinition.c revision be109b3e768b70f9efb106d25d6b5a2c72c5a9b8
1// RUN: clang %s -fsyntax-only -verify
2int f(int a) { } // expected-note {{previous definition is here}}
3int f(int);
4int f(int a) { } // expected-error {{redefinition of 'f'}}
5
6// <rdar://problem/6097326>
7int foo(x) {
8  return 0;
9}
10int x = 1;
11