brintos

brintos / llvm-project-archived public Read only

0
0
Text · 797 B · 8354347 Raw
26 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3void 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 12void foo(13    int a,14    void, // expected-error{{'void' must be the first and only parameter if specified}}15    int b);16 17void bar(18    void, // expected-error{{'void' must be the first and only parameter if specified}}19    ...);20 21struct 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