Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s |
John McCall | 07a5c22 | 2009-08-15 02:09:25 +0000 | [diff] [blame] | 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}} |