2013-09-17 07:59:35 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-pc-openbsd -fsyntax-only -verify -ffreestanding %s
|
2009-08-15 10:09:25 +08:00
|
|
|
|
|
|
|
// Tests that -ffreestanding disables all special treatment of main().
|
|
|
|
|
|
|
|
void* allocate(long size);
|
|
|
|
|
|
|
|
void* main(void* context, long size) {
|
|
|
|
if (context) return allocate(size);
|
2019-11-09 23:15:53 +08:00
|
|
|
} // expected-warning {{non-void function does not return a value in all control paths}}
|