Semantic checking for main().
authorJohn McCall <rjmccall@apple.com>
Sat, 25 Jul 2009 04:36:53 +0000 (04:36 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 25 Jul 2009 04:36:53 +0000 (04:36 +0000)
commit02dee0a46a390ad3bbad16672bd44c62628ea1ce
treec4a4f29c13ebdffcd5100f0611a2bc8d7559ee6d
parent732d15b9b9d19b1de9b80da80880487f39316bae
Semantic checking for main().

Fix some invalid main() methods in the test suite that were nicely
exposed by the new checks.

llvm-svn: 77047
12 files changed:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/basic/basic.start/basic.start.main/p2a.cpp [new file with mode: 0644]
clang/test/CXX/basic/basic.start/basic.start.main/p2b.cpp [new file with mode: 0644]
clang/test/CXX/basic/basic.start/basic.start.main/p2c.cpp [new file with mode: 0644]
clang/test/CXX/basic/basic.start/basic.start.main/p2d.cpp [new file with mode: 0644]
clang/test/CXX/basic/basic.start/basic.start.main/p2e.cpp [new file with mode: 0644]
clang/test/CXX/basic/basic.start/basic.start.main/p2f.cpp [new file with mode: 0644]
clang/test/CXX/basic/basic.start/basic.start.main/p2g.cpp [new file with mode: 0644]
clang/test/CodeGen/volatile.c
clang/test/Sema/block-args.c
clang/test/SemaObjC/nsobject-attribute.m