================ @@ -5,10 +5,10 @@ static int g0; // expected-note{{previous definition}} int g0; // expected-error{{non-static declaration of 'g0' follows static declaration}} static int g1; -extern int g1; +extern int g1; // expected-error{{the same identifier 'g1' appears with both internal and external linkage}} ---------------- AaronBallman wrote:
This is an example of code that should be fine per 6.2.2.p4 https://github.com/llvm/llvm-project/pull/78064 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits