summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CompileFeatures/cxx_lambda_init_captures.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_lambda_init_captures.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/cxx_lambda_init_captures.cpp b/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
index 7e337fa..46f22cb 100644
--- a/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
+++ b/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
@@ -2,5 +2,6 @@
int someFunc()
{
int a = 0;
- return [b = static_cast<int&&>(a)]() { return b; }();
+ return [b = static_cast<int&&>(a)]() { return b; }
+ ();
}