summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/simd_aligned_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-06-16 07:08:35 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-06-16 07:08:35 +0000
commitc5e025831ba7bd42ea0e62e0828482c1263fffa1 (patch)
treecfbe6d92c3e1a4a8ea4b0e1eba35f8aac98baa76 /clang/test/OpenMP/simd_aligned_messages.cpp
parent43ab82c562b4b1c22d2ace3cced4cf310a99f206 (diff)
downloadbcm5719-llvm-c5e025831ba7bd42ea0e62e0828482c1263fffa1.tar.gz
bcm5719-llvm-c5e025831ba7bd42ea0e62e0828482c1263fffa1.zip
[OPENMP] Initial support of 'reduction' clause
llvm-svn: 211007
Diffstat (limited to 'clang/test/OpenMP/simd_aligned_messages.cpp')
-rw-r--r--clang/test/OpenMP/simd_aligned_messages.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/OpenMP/simd_aligned_messages.cpp b/clang/test/OpenMP/simd_aligned_messages.cpp
index f6bdcdd1962..84cf40c1731 100644
--- a/clang/test/OpenMP/simd_aligned_messages.cpp
+++ b/clang/test/OpenMP/simd_aligned_messages.cpp
@@ -52,13 +52,14 @@ template<int L, class T, class N> T test_template(T* arr, N num) {
// expected-error@+1 {{argument to 'aligned' clause must be a positive integer value}}
#pragma omp simd aligned(arr:L)
for (i = 0; i < num; ++i) {
- T cur = arr[ind2];
+ T cur = arr[(int)ind2];
ind2 += L;
sum += cur;
}
// expected-error@+1 {{argument of aligned clause should be array, pointer, reference to array or reference to pointer, not 'int'}}
#pragma omp simd aligned(num:4)
for (i = 0; i < num; ++i);
+ return T();
}
template<int LEN> int test_warn() {
OpenPOWER on IntegriCloud