]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/freemain.c
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / Sema / freemain.c
1 // RUN: %clang_cc1 -triple i686-pc-openbsd -fsyntax-only -verify -ffreestanding %s
2
3 // Tests that -ffreestanding disables all special treatment of main().
4
5 void* allocate(long size);
6
7 void* main(void* context, long size) {
8   if (context) return allocate(size);
9 } // expected-warning {{control may reach end of non-void function}}