[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p2 requirements (PR #101853)

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 5 02:56:20 PDT 2024


================
@@ -0,0 +1,22 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -pedantic-errors %s
+
----------------
Sirraide wrote:

I think this was already pointed out, but some tests w/ `extern "C++"` would be nice, as well as tests for when a namespace is contained in a linkage-spec-decl.

https://github.com/llvm/llvm-project/pull/101853


More information about the cfe-commits mailing list