Mercurial > hg > CbC > CbC_llvm
view clang/test/Sema/freemain.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple i686-pc-openbsd -fsyntax-only -verify -ffreestanding %s // Tests that -ffreestanding disables all special treatment of main(). void* allocate(long size); void* main(void* context, long size) { if (context) return allocate(size); } // expected-warning {{non-void function does not return a value in all control paths}}