Debian Codegraph @

clang/test/Sema/no-warn-missing-prototype.c

raw
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 // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -Wmissing-prototypes -x c++ -ffreestanding -triple=x86_64-uefi -verify -DMS %s
5 // expected-no-diagnostics
6 int main() {
7 return 0;
8 }
9
10 int efi_main() {
11 return 0;
12 }
13
14 #ifdef MS
15 int wmain(int, wchar_t *[], wchar_t *[]) {
16 return 0;
17 }
18
19 int wWinMain(void*, void*, wchar_t*, int) {
20 return 0;
21 }
22
23 int WinMain(void*, void*, char*, int) {
24 return 0;
25 }
26
27 bool DllMain(void*, unsigned, void*) {
28 return true;
29 }
30 #endif