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/OpenMP/simd_reduction_messages.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/OpenMP/simd_reduction_messages.cpp')
-rw-r--r-- | test/OpenMP/simd_reduction_messages.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/OpenMP/simd_reduction_messages.cpp b/test/OpenMP/simd_reduction_messages.cpp index 82a966cd3f..e082921cf3 100644 --- a/test/OpenMP/simd_reduction_messages.cpp +++ b/test/OpenMP/simd_reduction_messages.cpp @@ -1,4 +1,6 @@ // RUN: %clang_cc1 -verify -fopenmp %s +// RUN: %clang_cc1 -verify -fopenmp -std=c++98 %s +// RUN: %clang_cc1 -verify -fopenmp -std=c++11 %s void foo() { } @@ -55,6 +57,9 @@ public: S5(int v) : a(v) {} }; class S6 { // expected-note 2 {{candidate function (the implicit copy assignment operator) not viable: no known conversion from 'int' to 'const S6' for 1st argument}} +#if __cplusplus >= 201103L // C++11 or later +// expected-note@-2 2 {{candidate function (the implicit move assignment operator) not viable}} +#endif int a; public: |