summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_generic_lambdas.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-29 13:58:37 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-05-29 13:58:37 (GMT)
commit1468e986e1874f7c011e74885e4df2fbab65b396 (patch)
tree333b77c1a92d5d86e803f03019ecd582362eb003 /Tests/CompileFeatures/cxx_generic_lambdas.cpp
parent9e11fcdc761f441de638b321874aea4d97a72676 (diff)
parentdd043c3f21fbfab17d7f400bd2bc9f927215b18e (diff)
downloadCMake-1468e986e1874f7c011e74885e4df2fbab65b396.zip
CMake-1468e986e1874f7c011e74885e4df2fbab65b396.tar.gz
CMake-1468e986e1874f7c011e74885e4df2fbab65b396.tar.bz2
Merge topic 'cxx14-features'
dd043c3f Features: Add support for C++14 features.
Diffstat (limited to 'Tests/CompileFeatures/cxx_generic_lambdas.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_generic_lambdas.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_generic_lambdas.cpp b/Tests/CompileFeatures/cxx_generic_lambdas.cpp
new file mode 100644
index 0000000..ae1b78e
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_generic_lambdas.cpp
@@ -0,0 +1,6 @@
+
+int someFunc()
+{
+ auto identity = [](auto a) { return a; };
+ return identity(0);
+}