diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-06-28 23:47:22 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-06-28 23:47:22 +0000 |
commit | e36c7281258a714a2b9116b9cb3d9361f12fd3c9 (patch) | |
tree | b27c189f38eda1bfd295ae6ac17c81d5f2300826 /test/SemaTemplate/derived.cpp | |
parent | 2e430153afacf9e406d0a6024ccc578fa5d3439f (diff) | |
download | clang-e36c7281258a714a2b9116b9cb3d9361f12fd3c9.tar.gz |
[test] Add test case for rdar://14183893.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/derived.cpp')
-rw-r--r-- | test/SemaTemplate/derived.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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<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}} + }; +} |