| Chris Lattner | d472b31 | 2007-07-21 03:09:58 +0000 | [diff] [blame] | 1 | // RUN: clang -parse-ast-check %s |
| 2 | |||||
| 3 | typedef int x; | ||||
| 4 | int f3(y, x, | ||||
| 5 | x) // expected-error {{redefinition of parameter}} | ||||
| 6 | int y, x, | ||||
| 7 | x; // expected-error {{redefinition of parameter}} | ||||
| 8 | { | ||||
| 9 | return x + y; | ||||
| 10 | } | ||||
| 11 | |||||
| 12 | void f4(void) { | ||||
| 13 | f3 (1, 1, 2, 3, 4); // expected-error {{too many arguments to function}} | ||||
| 14 | } | ||||
| 15 | |||||