Douglas Gregor | f009795 | 2008-04-21 02:02:58 +0000 | [diff] [blame] | 1 | // RUN: clang %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 |