================
@@ -194,6 +194,11 @@ namespace ModifyingCapture {
[=] {
n = 1; // expected-error {{cannot assign to a variable captured by copy
in a non-mutable lambda}}
};
+ const int cn = 0;
----------------
shafik wrote:
I think we should have also tested a `constexpr` variable case and maybe a
`auto &` assigned from `cn` as well just to cover a more complete test set.
https://github.com/llvm/llvm-project/pull/105647
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits