blob: 81cb8fd9c29f1ae640af5946e1b29ab2b92c319f [file] [log] [blame]
Chris Lattner3b427b32007-10-11 00:18:28 +00001// RUN: clang -fsyntax-only -verify %s
Chris Lattnerd472b312007-07-21 03:09:58 +00002
Chris Lattnerd472b312007-07-21 03:09:58 +00003int 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
11void f4(void) {
12 f3 (1, 1, 2, 3, 4); // expected-error {{too many arguments to function}}
13}
14