From: Douglas Gregor Date: Mon, 20 Dec 2010 22:46:22 +0000 (+0000) Subject: Test template instantiation of pack expansions where the parameter pack is in a neste... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88f30dee6ca6d99e46d4ce61f691fb3dff4ae7c8;p=clang Test template instantiation of pack expansions where the parameter pack is in a nested-name-specifier git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122282 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/temp/temp.decls/temp.variadic/p4.cpp b/test/CXX/temp/temp.decls/temp.variadic/p4.cpp index db4db7ddd2..b4f7c09981 100644 --- a/test/CXX/temp/temp.decls/temp.variadic/p4.cpp +++ b/test/CXX/temp/temp.decls/temp.variadic/p4.cpp @@ -1,15 +1,28 @@ // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s -template struct Tuple; +template struct tuple; // FIXME: Many more bullets to go // In a template-argument-list (14.3); the pattern is a template-argument. template struct tuple_of_refs { - typedef Tuple types; + typedef tuple types; }; -Tuple *t_int_ref_float_ref; +tuple *t_int_ref_float_ref; tuple_of_refs::types *t_int_ref_float_ref_2 = t_int_ref_float_ref; +template +struct extract_nested_types { + typedef tuple types; +}; + +template +struct identity { + typedef T type; +}; + +tuple *t_int_float; +extract_nested_types, identity >::types *t_int_float_2 + = t_int_float;