summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2018-08-01 06:26:55 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2018-08-01 06:26:55 +0000
commitfbba0f27529af2d879771fa0908e8c631c36217f (patch)
tree31c9ee5f05c88c4d91ef30e3201ef974724f72be /openmp
parent6b751f9ab7ef84af7d3ee7b0c7408b6905b1d474 (diff)
[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
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/test/tasking/bug_36720.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openmp/runtime/test/tasking/bug_36720.c b/openmp/runtime/test/tasking/bug_36720.c
index 059d9c94697..684d6755a49 100644
--- a/openmp/runtime/test/tasking/bug_36720.c
+++ b/openmp/runtime/test/tasking/bug_36720.c
@@ -16,15 +16,17 @@ from inside the tasks, once again everything runs fine.
int main() {
#pragma omp task
{
+ int i;
#pragma omp parallel for
- for (int i = 0; i < N; i++)
+ for (i = 0; i < N; i++)
(void)0;
}
#pragma omp task
{
+ int i;
#pragma omp parallel for
- for (int i = 0; i < N; ++i)
+ for (i = 0; i < N; ++i)
(void)0;
}