MihailMihov wrote:

Currently there is no test for this, as I'm not sure how to test it. In the 
linked issue, `throw` was suggested, but I don't think that can work for arrays 
as they always go through the array-to-pointer conversion. `typeid` can't be 
used in the tests and I think it's not implemented in CIR.

The only thing that might work is try/catch. I think 
[this](https://godbolt.org/z/5f1KnK6oj) would be a correct test for 
`Type::ConstantArray`, but `try` is not yet upstreamed and I don't think that 
same idea can be applied for `Type::IncompleteArray` or `Type::VariableArray`.

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

Reply via email to