================
@@ -78,12 +80,12 @@ namespace ns {
 extern "C" struct A { int main(); }; // ok
 
 namespace c {
-  extern "C" void main(); // expected-warning {{'main' should not be 'extern 
"C"'}}
+  extern "C" int main(); // expected-warning {{'main' should not be 'extern 
"C"'}}
 }
 
 extern "C" {
   namespace Z {
-    void main(); // expected-warning {{'main' should not be 'extern "C"'}}
----------------
cor3ntin wrote:

Yes - i think it's useful to test that `void main()` is recognized as a main 
function, albeit an invalid one

https://github.com/llvm/llvm-project/pull/104594
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to