r185244 - [test] Add test case for rdar://14183893.

Argyrios Kyrtzidis akyrtzi at gmail.com
Fri Jun 28 16:47:22 PDT 2013


Author: akirtzidis
Date: Fri Jun 28 18:47:22 2013
New Revision: 185244

URL: http://llvm.org/viewvc/llvm-project?rev=185244&view=rev
Log:
[test] Add test case for rdar://14183893.

Modified:
    cfe/trunk/test/SemaTemplate/derived.cpp

Modified: cfe/trunk/test/SemaTemplate/derived.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/derived.cpp?rev=185244&r1=185243&r2=185244&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/derived.cpp (original)
+++ cfe/trunk/test/SemaTemplate/derived.cpp Fri Jun 28 18:47:22 2013
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
 
 template<typename T> class vector2 {};
 template<typename T> class vector : vector2<T> {};
@@ -37,3 +38,17 @@ namespace PR16292 {
   template<class T> class DerivedClass : public BaseClass {};
   void* p = new DerivedClass<void>;
 }
+
+namespace rdar14183893 {
+  class Typ { // expected-note {{not complete}}
+    Typ x; // expected-error {{incomplete type}}
+  };
+
+  template <unsigned  C> class B :  Typ {};
+  typedef B<0> TFP;
+
+  class A {
+    TFP m_p;
+    void Enable() { 0, A(); } // expected-warning {{unused}}
+  };
+}





More information about the cfe-commits mailing list