xref: /llvm-project/clang/test/Sema/c2x-warn-strict-prototypes.c (revision ef87865b98fa25af1d2c045bab1268b2a1503374)
1 // RUN: %clang_cc1 -fsyntax-only -Wstrict-prototypes -verify -std=c2x %s
2 // RUN: %clang_cc1 -fsyntax-only -Wstrict-prototypes -verify -fno-knr-functions %s
3 // expected-no-diagnostics
4 
5 void foo();
bar()6 void bar() {}
7 
8 void baz(void);
baz()9 void baz() {}
10