diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/Misc/ast-dump-templates.cpp | |
parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) |
Notes
Diffstat (limited to 'test/Misc/ast-dump-templates.cpp')
-rw-r--r-- | test/Misc/ast-dump-templates.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Misc/ast-dump-templates.cpp b/test/Misc/ast-dump-templates.cpp index b7aeca8d55df1..022d5c41127c8 100644 --- a/test/Misc/ast-dump-templates.cpp +++ b/test/Misc/ast-dump-templates.cpp @@ -39,6 +39,18 @@ void baz() { // CHECK1: template <int A, typename B> B bar() // CHECK2: template <int A, typename B> B bar() +// CHECK1-LABEL: template <typename ...T> struct A { +// CHECK1-NEXT: template <T ...x[3]> struct B { +template <typename ...T> struct A { + template <T ...x[3]> struct B {}; +}; + +// CHECK1-LABEL: template <typename ...T> void f(T ...[3]) { +// CHECK1-NEXT: A<T [3]...> a; +template <typename ...T> void f(T ...[3]) { + A<T [3]...> a; +} + namespace test2 { void func(int); void func(float); |