diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-05-05 21:57:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-05-05 21:57:07 +0000 |
commit | 3f1b5d077b7e68c0c801a56f17b05dab96f7f992 (patch) | |
tree | 04a1b5da5699318cd42202ad10b1c94fdb6db239 /clang/test/SemaTemplate/alias-template-template-param.cpp | |
parent | bc8e3f8c45c16e272b6c0b3b93688b85988886d6 (diff) | |
download | bcm5719-llvm-3f1b5d077b7e68c0c801a56f17b05dab96f7f992.tar.gz bcm5719-llvm-3f1b5d077b7e68c0c801a56f17b05dab96f7f992.zip |
Implement support for C++0x alias templates.
llvm-svn: 130953
Diffstat (limited to 'clang/test/SemaTemplate/alias-template-template-param.cpp')
-rw-r--r-- | clang/test/SemaTemplate/alias-template-template-param.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/alias-template-template-param.cpp b/clang/test/SemaTemplate/alias-template-template-param.cpp new file mode 100644 index 00000000000..a847b0672a2 --- /dev/null +++ b/clang/test/SemaTemplate/alias-template-template-param.cpp @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s + +template<template<typename> class D> using C = D<int>; + +// Substitution of the alias template transforms the TemplateSpecializationType +// 'D<int>' into the DependentTemplateSpecializationType 'T::template U<int>'. +template<typename T> void f(C<T::template U>); |