blob: ff000c62cc706ec3e0ada2530ec0c997b456a6bd [file] [log] [blame]
David Majnemerfab61e92013-09-16 23:59:35 +00001// RUN: %clang_cc1 -triple i686-pc-openbsd -fsyntax-only -verify -ffreestanding %s
John McCalldeb84482009-08-15 02:09:25 +00002
3// Tests that -ffreestanding disables all special treatment of main().
4
5void* allocate(long size);
6
7void* main(void* context, long size) {
8 if (context) return allocate(size);
9} // expected-warning {{control may reach end of non-void function}}