blob: a2364df259bfacd0b28f63868e191df3c9944c1d [file] [log] [blame]
John McCall07a5c222009-08-15 02:09:25 +00001// RUN: clang-cc -fsyntax-only -verify -ffreestanding %s
2
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}}