Skip to content

Commit bad7a6a

Browse files
jketemaCopilot
andcommitted
Use an int globalVar2 in the pack regression
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 52f2daa commit bad7a6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cpp/ql/test/query-tests/Best Practices/Unused Entities/UnusedStaticVariables

‎cpp/ql/test/query-tests/Best Practices/Unused Entities/UnusedStaticVariables/test.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ static auto sum(auto... values) // $ SPURIOUS: Alert
5555
return (0 + ... + values);
5656
}
5757

58-
unsigned result = sum() + sum(2);
58+
int globalVar2 = sum() + sum(2);

0 commit comments

Comments
 (0)