diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-23 03:17:06 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-23 03:17:06 +0000 |
| commit | a4bb292095482300a74170e4e297055549a38736 (patch) | |
| tree | d464e0811f4a05adffcc1ac39e868cb34fd27493 /clang/test/Misc/ast-dump-templates.cpp | |
| parent | f98b00c33e83cb507c21107e8c56961a4b043509 (diff) | |
| download | bcm5719-llvm-a4bb292095482300a74170e4e297055549a38736.tar.gz bcm5719-llvm-a4bb292095482300a74170e4e297055549a38736.zip | |
When pretty-printing a declaration of a pack, put the ellipsis before the name
being declared, not at the end. When pretty-printing a non-type template
parameter, put the name of the parameter in the middle of the type, not at the
end.
llvm-svn: 213718
Diffstat (limited to 'clang/test/Misc/ast-dump-templates.cpp')
| -rw-r--r-- | clang/test/Misc/ast-dump-templates.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Misc/ast-dump-templates.cpp b/clang/test/Misc/ast-dump-templates.cpp index b7aeca8d55d..022d5c41127 100644 --- a/clang/test/Misc/ast-dump-templates.cpp +++ b/clang/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); |

