Message ID | 20181108194411.GV11625@tucnak |
---|---|
State | New |
Headers | show |
Series | [committed] Fix task-reduction-8.c | expand |
--- libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c.jj 2018-11-08 18:08:04.178942068 +0100 +++ libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c 2018-11-08 20:31:32.824942285 +0100 @@ -45,7 +45,8 @@ unsigned long long int bar (int z, int *a, unsigned long long int *b, int *s) { unsigned long long int x = 1; - #pragma omp taskloop reduction (*:x) in_reduction (*:b[0]) + #pragma omp taskloop reduction (*:x) in_reduction (*:b[0]) \ + in_reduction (+:s[0]) for (int i = z; i < z + 8; i++) { #pragma omp task in_reduction (*:x)