Skip to content

Commit 973fc3a

Browse files
Update cpp/misra/test/rules/RULE-8-1-2/test.cpp
Fix mislabed test case compliance Co-authored-by: Mauro Baluda <mbaluda@github.com>
1 parent 889c4e4 commit 973fc3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/misra/test/rules/RULE-8-1-2/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void m1() {
2828
[&]() { return l1; }(); // COMPLIANT
2929
[l1]() { return l1; }(); // COMPLIANT
3030
[&, l1]() { return l1; }(); // COMPLIANT
31-
[&, l1]() { return l1 + l2; }(); // NON_COMPLIANT
31+
[&, l1]() { return l1 + l2; }(); // COMPLIANT
3232

3333
// Transient by immediate move (must not implicitly capture local variables)
3434
auto la1 = []() { return 1; }; // COMPLIANT

0 commit comments

Comments
 (0)