================ @@ -372,6 +372,14 @@ void trivial_lambda() { trivial_lambda(); } +bool call_lambda_var_decl() { + RefCountable* ref_countable = make_obj(); + auto lambda = [&]() -> bool { + return ref_countable->next(); + }; + return lambda(); +} + ---------------- t-rasmud wrote:
Maybe add a test for capture by copy also? (for completeness) https://github.com/llvm/llvm-project/pull/135688 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits