[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / freemain.c
blob83d7a4d56eac9a342f848b6c0b251b72b94cf98f
1 // RUN: %clang_cc1 -triple i686-pc-openbsd -fsyntax-only -verify -ffreestanding %s
3 // Tests that -ffreestanding disables all special treatment of main().
5 void* allocate(long size);
7 void* main(void* context, long size) {
8 if (context) return allocate(size);
9 } // expected-warning {{non-void function does not return a value in all control paths}}