diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-05-06 00:21:14 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-05-22 18:01:23 +0200 |
commit | dd043c3f21fbfab17d7f400bd2bc9f927215b18e (patch) | |
tree | 73f942d1294819f457309e1ccb507a057901a180 /Tests/CompileFeatures/cxx_lambda_init_captures.cpp | |
parent | 3ea9bde8450a28b58730230e9e73e4b8d439f701 (diff) | |
download | cmake-dd043c3f21fbfab17d7f400bd2bc9f927215b18e.tar.gz |
Features: Add support for C++14 features.
Record the features implemented by GNU 4.9 and Clang 3.4.
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 0000000000..7e337faf41 --- /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; }(); +} |