Mercurial > hg > CbC > CbC_gcc
diff libgomp/testsuite/libgomp.c/pr26943-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children |
line wrap: on
line diff
--- a/libgomp/testsuite/libgomp.c/pr26943-3.c Sun Aug 21 07:07:55 2011 +0900 +++ b/libgomp/testsuite/libgomp.c/pr26943-3.c Fri Oct 27 22:46:09 2017 +0900 @@ -2,8 +2,10 @@ /* { dg-do run } */ extern int omp_set_dynamic (int); +extern void omp_set_nested (int); extern int omp_get_thread_num (void); extern void abort (void); +extern void GOMP_barrier (void); int a = 8, b = 12, c = 16, d = 20, j = 0, l = 0; char e[10] = "a", f[10] = "b", g[10] = "c", h[10] = "d"; @@ -26,7 +28,7 @@ { if (a != 8 || b != 12 || e[0] != 'a' || f[0] != 'b') j++; -#pragma omp barrier /* { dg-warning "may not be closely nested" } */ + GOMP_barrier (); #pragma omp atomic a += i; b += i; @@ -37,7 +39,7 @@ f[0] += i; g[0] = 'g' + i; h[0] = 'h' + i; -#pragma omp barrier /* { dg-warning "may not be closely nested" } */ + GOMP_barrier (); if (a != 8 + 6 || b != 12 + i || c != i || d != i) j += 8; if (e[0] != 'a' + 6 || f[0] != 'b' + i || g[0] != 'g' + i)