diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-04-04 08:50:41 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-04-08 09:05:56 (GMT) |
commit | e1e292cd069bf811b0635088539aace0f0eeaf68 (patch) | |
tree | e01d0fe9bfd01ee35f3bfcc1bfe2dfc62d994827 /Tests/CompileFeatures | |
parent | 3300f783104b89c00bde1904e5528e9564c479a2 (diff) | |
download | CMake-e1e292cd069bf811b0635088539aace0f0eeaf68.zip CMake-e1e292cd069bf811b0635088539aace0f0eeaf68.tar.gz CMake-e1e292cd069bf811b0635088539aace0f0eeaf68.tar.bz2 |
Features: Add cxx_alias_templates.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r-- | Tests/CompileFeatures/cxx_alias_templates.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_alias_templates.cpp b/Tests/CompileFeatures/cxx_alias_templates.cpp new file mode 100644 index 0000000..a47e27d --- /dev/null +++ b/Tests/CompileFeatures/cxx_alias_templates.cpp @@ -0,0 +1,11 @@ + +template <typename T1, typename T2> +struct A +{ + typedef T1 MyT1; + using MyT2 = T2; +}; + +using B = A<int, char>; +template<typename T> +using C = A<int, T>; |