Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc %s -fsyntax-only -verify |
Chris Lattner | 777f07b | 2008-12-17 07:32:46 +0000 | [diff] [blame] | 2 | int f(int a) { } // expected-note {{previous definition is here}} |
Douglas Gregor | f009795 | 2008-04-21 02:02:58 +0000 | [diff] [blame] | 3 | int f(int); |
Chris Lattner | 777f07b | 2008-12-17 07:32:46 +0000 | [diff] [blame] | 4 | int f(int a) { } // 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; |