blob: eed644d483acb6cb80505a96d1eaa763835a308e [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s
John McCall07a5c222009-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}}