summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-04 11:11:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:56 (GMT)
commit32c2acd65c3d48433a50a6c2f9fc00c2a1a699f4 (patch)
treeb4f1e3bbda60383008200d8d7611f37733d5023b /Tests/CompileFeatures
parent9064f78b0c07a79f25ee04cf8afaf726d18ec722 (diff)
downloadCMake-32c2acd65c3d48433a50a6c2f9fc00c2a1a699f4.zip
CMake-32c2acd65c3d48433a50a6c2f9fc00c2a1a699f4.tar.gz
CMake-32c2acd65c3d48433a50a6c2f9fc00c2a1a699f4.tar.bz2
Features: Add cxx_extern_templates.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/cxx_extern_templates.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_extern_templates.cpp b/Tests/CompileFeatures/cxx_extern_templates.cpp
new file mode 100644
index 0000000..9fa4aa4
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_extern_templates.cpp
@@ -0,0 +1,12 @@
+
+template<typename T>
+void someFunc()
+{
+}
+
+extern template void someFunc<int>();
+
+void otherFunc()
+{
+ someFunc<int>();
+}