aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/partial-spec-instantiate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/partial-spec-instantiate.cpp')
-rw-r--r--clang/test/SemaTemplate/partial-spec-instantiate.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/partial-spec-instantiate.cpp b/clang/test/SemaTemplate/partial-spec-instantiate.cpp
index 0b84df6..44b5800 100644
--- a/clang/test/SemaTemplate/partial-spec-instantiate.cpp
+++ b/clang/test/SemaTemplate/partial-spec-instantiate.cpp
@@ -152,3 +152,16 @@ namespace GH60778 {
ClassTemplate<>::Nested<int> instantiation;
}
}
+#if __cplusplus >= 201103L
+namespace GH162855 {
+ template <class...> using A = int;
+ template <class, int> struct B;
+ template <class...> struct C;
+ template <template <class, int...> class TT, long... X>
+ struct C<TT<int, X...>> {
+ template <class... Y> using l = A<B<Y, X>...>;
+ };
+ template <class> struct D;
+ template struct C<D<int>>;
+} // namespace GH162855
+#endif