================
@@ -102,6 +126,11 @@ void test_unspecified_array_length() {
static_assert(_Countof(**x) == 3);
}
+void test_completed_array() {
+ int a[] = {1, 2, errno};
----------------
alejandro-colomar wrote:
I wanted something that wasn't an ICE, and which the compiler wasn't allowed to
transform into an ICE through optimization, to make sure that even with a
run-time value, we have _Countof result in an ICE.
https://github.com/llvm/llvm-project/pull/133333
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits