summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/basic/basic.start/basic.start.main/p3.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] main can't be declared as global variable, in C++.Davide Italiano2015-08-141-0/+66
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
OpenPOWER on IntegriCloud