diff options
Diffstat (limited to 'Tests/CompileFeatures/cxx_lambda_init_captures.cpp')
-rw-r--r-- | Tests/CompileFeatures/cxx_lambda_init_captures.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_lambda_init_captures.cpp b/Tests/CompileFeatures/cxx_lambda_init_captures.cpp new file mode 100644 index 0000000..7e337fa --- /dev/null +++ b/Tests/CompileFeatures/cxx_lambda_init_captures.cpp @@ -0,0 +1,6 @@ + +int someFunc() +{ + int a = 0; + return [b = static_cast<int&&>(a)]() { return b; }(); +} |