I don't have a test case handy for them since I'm not sure how to trigger them reliably, but they are easy enough to implement and I ran into them while working on array fillers.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I assume we're going to see more patches in the future in this space as you discover examples/tests for this, but in order to unblock other tests, this is good enough for now.
I don't have a test case handy for them since I'm not sure how to trigger them reliably, but they are easy enough to implement and I ran into them while working on array fillers.
I think we should have test coverage for this if possible. https://godbolt.org/z/75jGrcT7v shows an example, but it might be that it's hard to test that example without other interpreter support first (in which case, you should add the example but comment out any bits that need it so that the test passes, along with a FIXME comment).
LGTM!
clang/test/AST/Interp/arrays.cpp | ||
---|---|---|
14 | I wish we could find some solution that didn't require this so that the test case breaks when we do get around to implementing support for the other bits. But this is at least a good start! |
clang/test/AST/Interp/arrays.cpp | ||
---|---|---|
14 | Usually we could just keep it enabled and add the appropriate expected-error parts, but in this case we run into an assertion later on and that doesn't work. |
I wish we could find some solution that didn't require this so that the test case breaks when we do get around to implementing support for the other bits. But this is at least a good start!