blob: 26c90c8e6d4f4bead02281414305843a88962ae1 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc %s -fsyntax-only -verify
Chris Lattner777f07b2008-12-17 07:32:46 +00002int f(int a) { } // expected-note {{previous definition is here}}
Douglas Gregorf0097952008-04-21 02:02:58 +00003int f(int);
Chris Lattner777f07b2008-12-17 07:32:46 +00004int f(int a) { } // expected-error {{redefinition of 'f'}}
Douglas Gregorf0097952008-04-21 02:02:58 +00005
Douglas Gregorbe109b32009-01-23 16:23:13 +00006// <rdar://problem/6097326>
7int foo(x) {
8 return 0;
9}
10int x = 1;