summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-02 22:08:49 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:54 (GMT)
commit7e748417bc8e06caa8eb0b6a6258b7d24cc22bfb (patch)
treebacca715b7a1c49ecb6c851acb451755c256ab9c /Tests/CompileFeatures
parent8d3467636c4fad32c25390244a62e58e068c33ad (diff)
downloadCMake-7e748417bc8e06caa8eb0b6a6258b7d24cc22bfb.zip
CMake-7e748417bc8e06caa8eb0b6a6258b7d24cc22bfb.tar.gz
CMake-7e748417bc8e06caa8eb0b6a6258b7d24cc22bfb.tar.bz2
Features: Add cxx_decltype.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/cxx_decltype.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_decltype.cpp b/Tests/CompileFeatures/cxx_decltype.cpp
new file mode 100644
index 0000000..24ec51e
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_decltype.cpp
@@ -0,0 +1,7 @@
+
+int someFunc()
+{
+ int i = 0;
+ decltype(i) other = 0;
+ return other;
+}