From 964b97cc6102412b23fdfe29d999e020ce58a3a0 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 19 Dec 2015 03:12:14 +0000 Subject: [PATCH] Test for diagnostic quality improvement in r256049. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256083 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/class-template-decl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/SemaTemplate/class-template-decl.cpp b/test/SemaTemplate/class-template-decl.cpp index 4f861dea70..63482d84df 100644 --- a/test/SemaTemplate/class-template-decl.cpp +++ b/test/SemaTemplate/class-template-decl.cpp @@ -152,3 +152,10 @@ void DontCrashOnThis() { T &pT = T(); pT; } + +namespace abstract_dependent_class { + template struct A { + virtual A *clone() = 0; // expected-note {{pure virtual}} + }; + template A *A::clone() { return new A; } // expected-error {{abstract class type 'A'}} +} -- 2.40.0