================ @@ -102,6 +126,11 @@ void test_unspecified_array_length() { static_assert(_Countof(**x) == 3); } +void test_completed_array() { + int a[] = {1, 2, errno}; ---------------- AaronBallman wrote:
Ah, in that case, go with a local or global variable (we don't typically pull in standard library headers as part of our tests because that ends up relying on whatever is installed on the system, which makes the tests non-hermetic). https://github.com/llvm/llvm-project/pull/133333 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits