Sign in
llvm
/
llvm-project
/
clang
/
f24f1aa67f8de1cb864ef833f358840411ebaf5b
/
.
/
test
/
Sema
/
c2x-warn-strict-prototypes.c
blob: f3efa1a3aa49e213c0876df1db0b4bb8d1137706 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -Wstrict-prototypes -verify -std=c2x %s
// RUN: %clang_cc1 -fsyntax-only -Wstrict-prototypes -verify -fno-knr-functions %s
// expected-no-diagnostics
void
foo
();
void
bar
()
{}
void
baz
(
void
);
void
baz
()
{}