[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / void-argument.cpp
blob8354347f5559e7881c02ef041f46c43c4db1f8f6
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
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}}
12 void foo(
13 int a,
14 void, // expected-error{{'void' must be the first and only parameter if specified}}
15 int b);
17 void bar(
18 void, // expected-error{{'void' must be the first and only parameter if specified}}
19 ...);
21 struct 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}}