blob: 8354347f5559e7881c02ef041f46c43c4db1f8f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// 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}}
};
|