llvm-project/clang/test/CXX/basic
Davide Italiano da8a3b903b [Sema] main can't be declared as global variable, in C++.
So, we now reject that. We also warn for any external-linkage global
variable named main in C, because it results in undefined behavior.

PR:	  24309
Differential Revision:	http://reviews.llvm.org/D11658
Reviewed by:	rsmith

llvm-svn: 245051
2015-08-14 14:13:29 +00:00
..
basic.def.odr
basic.link Switch the semantic DeclContext for a block-scope declaration of a function or 2013-09-20 01:15:31 +00:00
basic.lookup Update error message text. 2015-01-18 19:05:48 +00:00
basic.scope The exception-declaration for a function-try-block cannot redeclare a 2014-06-02 13:10:07 +00:00
basic.start [Sema] main can't be declared as global variable, in C++. 2015-08-14 14:13:29 +00:00
basic.stc/basic.stc.dynamic Add implicit declarations of allocation functions when looking them up for 2014-02-04 01:14:30 +00:00
basic.types [Sema] Don't crash if array bound calculation overflowed constexpr array 2015-04-18 04:55:51 +00:00