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 | 2c4156ea486fd254aef7b5c0aafbee612ce0ca72 (patch) | |
tree | 1854829ff3a2b6ffe7cc87be6825439f9d218b00 /test/SemaCXX/vector.cpp | |
parent | b016519fe108cb4bf1e2f0981ee6f1892d16c0e7 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/vector.cpp')
-rw-r--r-- | test/SemaCXX/vector.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/SemaCXX/vector.cpp b/test/SemaCXX/vector.cpp index bcd7fedb4d..9b272444a2 100644 --- a/test/SemaCXX/vector.cpp +++ b/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; }; |