[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / Sema / no-warn-missing-prototype.c
blob17d69ac8913faa66ae53b381aee7b73fab2ac14e
1 // RUN: %clang_cc1 -fsyntax-only -Wmissing-prototypes -x c -ffreestanding -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -Wmissing-prototypes -x c++ -ffreestanding -verify %s
3 // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -Wmissing-prototypes -x c++ -ffreestanding -triple=x86_64-pc-win32 -verify -DMS %s
4 // expected-no-diagnostics
5 int main() {
6 return 0;
9 int efi_main() {
10 return 0;
13 #ifdef MS
14 int wmain(int, wchar_t *[], wchar_t *[]) {
15 return 0;
18 int wWinMain(void*, void*, wchar_t*, int) {
19 return 0;
22 int WinMain(void*, void*, char*, int) {
23 return 0;
26 bool DllMain(void*, unsigned, void*) {
27 return true;
29 #endif