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/SemaCXX/vector.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/SemaCXX/vector.cpp')
-rw-r--r-- | clang/test/SemaCXX/vector.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/vector.cpp b/clang/test/SemaCXX/vector.cpp index bcd7fedb4df..9b272444a23 100644 --- a/clang/test/SemaCXX/vector.cpp +++ b/clang/test/SemaCXX/vector.cpp @@ -1,4 +1,7 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -std=c++98 %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -std=c++11 %s + typedef char char16 __attribute__ ((__vector_size__ (16))); typedef long long longlong16 __attribute__ ((__vector_size__ (16))); typedef char char16_e __attribute__ ((__ext_vector_type__ (16))); @@ -101,7 +104,10 @@ void casts(longlong16 ll16, longlong16_e ll16e) { } template<typename T> -struct convertible_to { // expected-note 3 {{candidate function (the implicit copy assignment operator)}} +struct convertible_to { // expected-note 3 {{candidate function (the implicit copy assignment operator) not viable}} +#if __cplusplus >= 201103L // C++11 or later +// expected-note@-2 3 {{candidate function (the implicit move assignment operator) not viable}} +#endif operator T() const; }; |