summaryrefslogtreecommitdiff
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, 1 insertions, 2 deletions
diff --git a/Tests/CompileFeatures/cxx_lambda_init_captures.cpp b/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
index 46f22cb514..7e337faf41 100644
--- a/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
+++ b/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
@@ -2,6 +2,5 @@
int someFunc()
{
int a = 0;
- return [b = static_cast<int&&>(a)]() { return b; }
- ();
+ return [b = static_cast<int&&>(a)]() { return b; }();
}