From: Argyrios Kyrtzidis Date: Fri, 28 Jun 2013 23:47:22 +0000 (+0000) Subject: [test] Add test case for rdar://14183893. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e36c7281258a714a2b9116b9cb3d9361f12fd3c9;p=clang [test] Add test case for rdar://14183893. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185244 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/derived.cpp b/test/SemaTemplate/derived.cpp index a76b34fda2..ce20cea7dc 100644 --- a/test/SemaTemplate/derived.cpp +++ b/test/SemaTemplate/derived.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s template class vector2 {}; template class vector : vector2 {}; @@ -37,3 +38,17 @@ namespace PR16292 { template class DerivedClass : public BaseClass {}; void* p = new DerivedClass; } + +namespace rdar14183893 { + class Typ { // expected-note {{not complete}} + Typ x; // expected-error {{incomplete type}} + }; + + template class B : Typ {}; + typedef B<0> TFP; + + class A { + TFP m_p; + void Enable() { 0, A(); } // expected-warning {{unused}} + }; +}