Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -fsyntax-only -verify |
Mike Stump | d1969d8 | 2009-07-22 00:43:08 +0000 | [diff] [blame] | 2 | int f(int a) { return 0; } // expected-note {{previous definition is here}} |
Douglas Gregor | f009795 | 2008-04-21 02:02:58 +0000 | [diff] [blame] | 3 | int f(int); |
Mike Stump | d1969d8 | 2009-07-22 00:43:08 +0000 | [diff] [blame] | 4 | int f(int a) { return 0; } // expected-error {{redefinition of 'f'}} |
Douglas Gregor | f009795 | 2008-04-21 02:02:58 +0000 | [diff] [blame] | 5 | |
Douglas Gregor | be109b3 | 2009-01-23 16:23:13 +0000 | [diff] [blame] | 6 | // <rdar://problem/6097326> |
| 7 | int foo(x) { |
| 8 | return 0; |
| 9 | } |
| 10 | int x = 1; |