aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/alias-template-template-param.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/alias-template-template-param.cpp')
-rw-r--r--test/SemaTemplate/alias-template-template-param.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaTemplate/alias-template-template-param.cpp b/test/SemaTemplate/alias-template-template-param.cpp
new file mode 100644
index 000000000000..a847b0672a2a
--- /dev/null
+++ b/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>);