summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2016-08-30 19:28:58 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2016-08-30 19:28:58 +0000
commit0af717970c1f023e8ac327aa5ecde6c369b069db (patch)
tree8cd0c784b104f246422203762eca5d96089f3515 /openmp
parent9cbc8db016e1d7e09fe87c370c0bc68414cbdb29 (diff)
downloadbcm5719-llvm-0af717970c1f023e8ac327aa5ecde6c369b069db.tar.gz
bcm5719-llvm-0af717970c1f023e8ac327aa5ecde6c369b069db.zip
Appease older gcc compilers for the many-microtask-args.c test
Older gcc compilers error out with the C99 syntax of: for (int i =...) so this change just moves the int i; declaration up above. llvm-svn: 280138
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/test/misc_bugs/many-microtask-args.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/runtime/test/misc_bugs/many-microtask-args.c b/openmp/runtime/test/misc_bugs/many-microtask-args.c
index a35487277cc..d644515d9a4 100644
--- a/openmp/runtime/test/misc_bugs/many-microtask-args.c
+++ b/openmp/runtime/test/misc_bugs/many-microtask-args.c
@@ -4,6 +4,7 @@
int main()
{
+ int i;
int i1 = 0;
int i2 = 1;
int i3 = 2;
@@ -23,7 +24,7 @@ int main()
int r = 0;
#pragma omp parallel for firstprivate(i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16) reduction(+:r)
- for (int i = 0; i < i16; i++) {
+ for (i = 0; i < i16; i++) {
r += i + i1 + i2 + i3 + i4 + i5 + i6 + i7 + i8 + i9 + i10 + i11 + i12 + i13 + i14 + i15 + i16;
}
OpenPOWER on IntegriCloud