diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-29 05:21:03 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-29 05:21:03 +0000 |
| commit | 19fa2c3b66332d45125cd5df111db1aa47c5a8b5 (patch) | |
| tree | a190718ead4a77c0918910a1c814acd05058ded1 /clang/test | |
| parent | eb4d7c6b701a51cb55b8662c9ff2dadd878d21ce (diff) | |
| download | bcm5719-llvm-19fa2c3b66332d45125cd5df111db1aa47c5a8b5.tar.gz bcm5719-llvm-19fa2c3b66332d45125cd5df111db1aa47c5a8b5.zip | |
[OPENMP] Fix crash on reductions codegen for short circuit reduction operations.
llvm-svn: 236084
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/OpenMP/for_reduction_codegen.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/OpenMP/for_reduction_codegen.cpp b/clang/test/OpenMP/for_reduction_codegen.cpp index c7a8a6bc510..c26961bf71f 100644 --- a/clang/test/OpenMP/for_reduction_codegen.cpp +++ b/clang/test/OpenMP/for_reduction_codegen.cpp @@ -42,6 +42,12 @@ T tmain() { vec[i] = t_var; s_arr[i] = var; } +#pragma omp parallel +#pragma omp for reduction(&& : t_var) + for (int i = 0; i < 2; ++i) { + vec[i] = t_var; + s_arr[i] = var; + } return T(); } |

