ahatanak wrote:
> I'd also like to see some tests for potential constant expression checking
> (see #151053).
Something like this?
```
constexpr const int* add(const int &a) { return &a+3; }
constexpr int arr[4]{0, 1, 2, 3};
static_assert(__builtin_object_size(add(arr[0]), 0) == 4);
```
Could you elaborate on what kind of tests you have in mind?
https://github.com/llvm/llvm-project/pull/157778
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits