brintos

brintos / llvm-project-archived public Read only

0
0
Text · 770 B · 5a5e186 Raw
31 lines · c
1// RUN: %clang_cc1 -fsyntax-only -Wmissing-prototypes -x c -ffreestanding -verify %s2// RUN: %clang_cc1 -fsyntax-only -Wmissing-prototypes -x c++ -ffreestanding -verify %s3// RUN: %clang_cc1 -fms-compatibility -fsyntax-only -Wmissing-prototypes -x c++ -ffreestanding -triple=x86_64-pc-win32 -verify -DMS %s4// RUN: %clang_cc1 -fms-compatibility -fsyntax-only -Wmissing-prototypes -x c++ -ffreestanding -triple=x86_64-uefi -verify -DMS %s5// expected-no-diagnostics6int main() {7  return 0;8}9 10int efi_main() {11  return 0;12}13 14#ifdef MS15int wmain(int, wchar_t *[], wchar_t *[]) {16  return 0;17}18 19int wWinMain(void*, void*, wchar_t*, int) {20  return 0;21}22 23int WinMain(void*, void*, char*, int) {24  return 0;25}26 27bool DllMain(void*, unsigned, void*) {28  return true;29}30#endif31