Skip to content

Commit e539d64

Browse files
committed
[test] Convert test for PR36720 to c89
GCC 4.8.5 defaults to this old C standard. I think we should make the tests pass a newer -std=c99|c11 but that's too intrusive for now... Differential Revision: https://reviews.llvm.org/D50084 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@338490 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 9c9eebf commit e539d64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/test/tasking/bug_36720.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ from inside the tasks, once again everything runs fine.
1616
int main() {
1717
#pragma omp task
1818
{
19+
int i;
1920
#pragma omp parallel for
20-
for (int i = 0; i < N; i++)
21+
for (i = 0; i < N; i++)
2122
(void)0;
2223
}
2324

2425
#pragma omp task
2526
{
27+
int i;
2628
#pragma omp parallel for
27-
for (int i = 0; i < N; ++i)
29+
for (i = 0; i < N; ++i)
2830
(void)0;
2931
}
3032

0 commit comments

Comments
 (0)