================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits