summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_default_function_template_args.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CompileFeatures/cxx_default_function_template_args.cpp')
-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();
+}