llvm-project/clang/test/CXX/basic/basic.start
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.start.init
basic.start.main [Sema] main can't be declared as global variable, in C++. 2015-08-14 14:13:29 +00:00