diff options
author | Charles Li <charles_li@playstation.sony.com> | 2015-11-17 20:25:05 +0000 |
---|---|---|
committer | Charles Li <charles_li@playstation.sony.com> | 2015-11-17 20:25:05 +0000 |
commit | e7cbb3ed4fc793fe599d35d780c4d8fda9048aa0 (patch) | |
tree | e4f5b4b315885a373d555ce54df36173e16837aa /clang/test/SemaTemplate/class-template-ctor-initializer.cpp | |
parent | de642cef2c9e18a7943613809b085789e16fa562 (diff) | |
download | bcm5719-llvm-e7cbb3ed4fc793fe599d35d780c4d8fda9048aa0.tar.gz bcm5719-llvm-e7cbb3ed4fc793fe599d35d780c4d8fda9048aa0.zip |
[Lit Test] Updated 34 Lit tests to be C++11 compatible.
Added expected diagnostics new to C++11.
Expanded RUN line to: default, C++98/03 and C++11.
llvm-svn: 253371
Diffstat (limited to 'clang/test/SemaTemplate/class-template-ctor-initializer.cpp')
-rw-r--r-- | clang/test/SemaTemplate/class-template-ctor-initializer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/class-template-ctor-initializer.cpp b/clang/test/SemaTemplate/class-template-ctor-initializer.cpp index 6043327b7ba..6dae2077458 100644 --- a/clang/test/SemaTemplate/class-template-ctor-initializer.cpp +++ b/clang/test/SemaTemplate/class-template-ctor-initializer.cpp @@ -1,4 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s template<class X> struct A {}; @@ -55,7 +57,11 @@ namespace PR7259 { } namespace NonDependentError { - struct Base { Base(int); }; // expected-note 2{{candidate}} + struct Base { Base(int); }; // expected-note {{candidate constructor not viable}} +// expected-note@-1 {{candidate constructor (the implicit copy constructor) not viable}} +#if __cplusplus >= 201103L // C++11 or later +// expected-note@-3 {{candidate constructor (the implicit move constructor) not viable}} +#endif template<typename T> struct Derived1 : Base { |