You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
797 B
26 lines
797 B
7 months ago
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||
|
|
||
|
void fun(
|
||
|
void a, // expected-error{{'void' must be the first and only parameter if specified}}
|
||
|
double b,
|
||
|
int c,
|
||
|
void d, // expected-error{{'void' must be the first and only parameter if specified}}
|
||
|
int e,
|
||
|
void f) // expected-error{{'void' must be the first and only parameter if specified}}
|
||
|
{}
|
||
|
|
||
|
void foo(
|
||
|
int a,
|
||
|
void, // expected-error{{'void' must be the first and only parameter if specified}}
|
||
|
int b);
|
||
|
|
||
|
void bar(
|
||
|
void, // expected-error{{'void' must be the first and only parameter if specified}}
|
||
|
...);
|
||
|
|
||
|
struct S {
|
||
|
S(
|
||
|
void, // expected-error{{'void' must be the first and only parameter if specified}}
|
||
|
void); // expected-error{{'void' must be the first and only parameter if specified}}
|
||
|
};
|