[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:21 PDT 2024
================
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -pedantic-errors %s
+
----------------
Sirraide wrote:
Also add a test for this (at the top level w/o any linkage-spec-decl) if we don’t already have one:
```
int main;
```
which is also invalid; probably in a separate file so it doesn’t complain about redeclarations
https://github.com/llvm/llvm-project/pull/101853
More information about the cfe-commits
mailing list