[Openmp-commits] [openmp] r338490 - [test] Convert test for PR36720 to c89

Jonas Hahnfeld via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 31 23:26:55 PDT 2018


Author: hahnfeld
Date: Tue Jul 31 23:26:55 2018
New Revision: 338490

URL: http://llvm.org/viewvc/llvm-project?rev=338490&view=rev
Log:
[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

Modified:
    openmp/trunk/runtime/test/tasking/bug_36720.c

Modified: openmp/trunk/runtime/test/tasking/bug_36720.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/tasking/bug_36720.c?rev=338490&r1=338489&r2=338490&view=diff
==============================================================================
--- openmp/trunk/runtime/test/tasking/bug_36720.c (original)
+++ openmp/trunk/runtime/test/tasking/bug_36720.c Tue Jul 31 23:26:55 2018
@@ -16,15 +16,17 @@ from inside the tasks, once again everyt
 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;
   }
 




More information about the Openmp-commits mailing list