freemain.c 330 B

123456789
  1. // RUN: %clang_cc1 -triple i686-pc-openbsd -fsyntax-only -verify -ffreestanding %s
  2. // Tests that -ffreestanding disables all special treatment of main().
  3. void* allocate(long size);
  4. void* main(void* context, long size) {
  5. if (context) return allocate(size);
  6. } // expected-warning {{control may reach end of non-void function}}