diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-03-16 13:36:56 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-03-16 13:36:56 +0000 |
| commit | c660c8f5d2c76fe0cb18cd027057a58e2cb5de7b (patch) | |
| tree | 64ae448848a29deb18f2b52107f48812d26b66f4 /clang/test/Misc/ast-dump-decl.cpp | |
| parent | 8dcf6fa3085af833751992d1ab3ceaf8f55f8cba (diff) | |
| download | bcm5719-llvm-c660c8f5d2c76fe0cb18cd027057a58e2cb5de7b.tar.gz bcm5719-llvm-c660c8f5d2c76fe0cb18cd027057a58e2cb5de7b.zip | |
Implement C++ DR727, which permits explicit specializations at class scope.
More generally, this permits a template to be specialized in any scope in which
it could be defined, so this also supersedes DR44 and DR374 (the latter of
which we previously only implemented in C++11 mode onwards due to unclarity as
to whether it was a DR).
llvm-svn: 327705
Diffstat (limited to 'clang/test/Misc/ast-dump-decl.cpp')
| -rw-r--r-- | clang/test/Misc/ast-dump-decl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Misc/ast-dump-decl.cpp b/clang/test/Misc/ast-dump-decl.cpp index c689149af06..21ba7ec8dad 100644 --- a/clang/test/Misc/ast-dump-decl.cpp +++ b/clang/test/Misc/ast-dump-decl.cpp @@ -360,7 +360,9 @@ class TestClassScopeFunctionSpecialization { template<> void foo<int>(int a) { }
};
// CHECK: ClassScopeFunctionSpecializationDecl
-// CHECK-NEXT: CXXMethod{{.*}} 'foo' 'void (int)'
+// CHECK-NEXT: CXXMethod{{.*}} foo 'void (int)'
+// CHECK-NEXT: ParmVarDecl
+// CHECK-NEXT: CompoundStmt
// CHECK-NEXT: TemplateArgument{{.*}} 'int'
namespace TestTemplateTypeParmDecl {
|

