================
@@ -20,7 +20,7 @@ struct __attribute__((internal_linkage)) S { // 
expected-warning{{'internal_link
 __attribute__((internal_linkage("foo"))) int g(void) {} // 
expected-error{{'internal_linkage' attribute takes no arguments}}
 
 int var6 [[clang::internal_linkage]];
-int var7 [[clang::internal_linkage]] __attribute__((common)); // 
expected-error{{'clang::internal_linkage' and 'common' attributes are not 
compatible}} \
+int var7 [[clang::internal_linkage]] __attribute__((common)); // 
expected-error{{'common' and 'clang::internal_linkage' attributes are not 
compatible}} \
----------------
compnerd wrote:

Yeah, I think that the rephrasing of the warning would absolutely help!

https://github.com/llvm/llvm-project/pull/162714
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to