hanchenye-llvm-project/clang/test/Sema/arg-invalid.c

7 lines
149 B
C

// RUN: clang %s -fsyntax-only -verify
void bar (void *);
void f11 (z) // expected-error {{may not have 'void' type}}
void z;
{ bar (&z); }