Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Chris Lattner | d472b31 | 2007-07-21 03:09:58 +0000 | [diff] [blame] | 2 | |
Chris Lattner | d472b31 | 2007-07-21 03:09:58 +0000 | [diff] [blame] | 3 | int f3(y, x, |
| 4 | x) // expected-error {{redefinition of parameter}} |
| 5 | int y, x, |
| 6 | x; // expected-error {{redefinition of parameter}} |
| 7 | { |
| 8 | return x + y; |
| 9 | } |
| 10 | |
| 11 | void f4(void) { |
Douglas Gregor | 74734d5 | 2009-04-02 15:37:10 +0000 | [diff] [blame] | 12 | f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}} |
Chris Lattner | d472b31 | 2007-07-21 03:09:58 +0000 | [diff] [blame] | 13 | } |
| 14 | |