1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 void fun( 4 void a, // expected-error{{'void' must be the first and only parameter if specified}} 5 double b, 6 int c, 7 void d, // expected-error{{'void' must be the first and only parameter if specified}} 8 int e, 9 void f) // expected-error{{'void' must be the first and only parameter if specified}} 10 {} 11 12 void foo( 13 int a, 14 void, // expected-error{{'void' must be the first and only parameter if specified}} 15 int b); 16 17 void bar( 18 void, // expected-error{{'void' must be the first and only parameter if specified}} 19 ...); 20 21 struct S { 22 S( 23 void, // expected-error{{'void' must be the first and only parameter if specified}} 24 void); // expected-error{{'void' must be the first and only parameter if specified}} 25 }; 26