mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
26 lines
316 B
C++
26 lines
316 B
C++
void test_lambda_declarator() {
|
|
[=](int, float) { };
|
|
|
|
[](int x = 42) { };
|
|
|
|
[](int x) { };
|
|
|
|
[]() mutable { };
|
|
|
|
[]() [[nodiscard]] { };
|
|
[] [[nodiscard]] { };
|
|
|
|
[]() -> void { };
|
|
|
|
int i;
|
|
[&i]() {
|
|
i += 1;
|
|
};
|
|
|
|
[&i] {
|
|
i += 1;
|
|
};
|
|
|
|
[] { };
|
|
[=] () { };
|
|
} |