summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-06 08:41:01 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:57 (GMT)
commitadf22f611e2e4213df31cc7e1d8c1513847b72ff (patch)
tree9fbec7dfb2deb4fb0122f4f7ad6260ddd76fe1b2 /Tests
parent7b3e8a05349e13ee300980c1a4789cc9175a6c42 (diff)
downloadCMake-adf22f611e2e4213df31cc7e1d8c1513847b72ff.zip
CMake-adf22f611e2e4213df31cc7e1d8c1513847b72ff.tar.gz
CMake-adf22f611e2e4213df31cc7e1d8c1513847b72ff.tar.bz2
Features: Add cxx_default_function_template_args.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/cxx_default_function_template_args.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_default_function_template_args.cpp b/Tests/CompileFeatures/cxx_default_function_template_args.cpp
new file mode 100644
index 0000000..3d14c52
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_default_function_template_args.cpp
@@ -0,0 +1,12 @@
+
+template<typename T = int>
+int someFunc()
+{
+ T t = 0;
+ return t;
+}
+
+void otherFunc()
+{
+ someFunc();
+}