================ @@ -260,3 +260,12 @@ namespace SourceLocation { static_assert(c.a.n == __LINE__ - 1, ""); } } + +namespace popcount { + static_assert(__builtin_popcount(~0u) == __CHAR_BIT__ * sizeof(unsigned int), ""); ---------------- erichkeane wrote:
I would suggest more 'difficult' tests here, something other than fully saturated. https://github.com/llvm/llvm-project/pull/67929 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits