diff --git a/gcc/testsuite/c-c++-common/gomp/critical-hint-1.c b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-1.c similarity index 98% rename from gcc/testsuite/c-c++-common/gomp/critical-hint-1.c rename to libgomp/testsuite/libgomp.c-c++-common/critical-hint-1.c index 510f8abef80d..1e49747477ba 100644 --- a/gcc/testsuite/c-c++-common/gomp/critical-hint-1.c +++ b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-1.c @@ -1,3 +1,5 @@ +/* { dg-do compile } */ + #include void diff --git a/gcc/testsuite/c-c++-common/gomp/critical-hint-2.c b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-2.c similarity index 98% rename from gcc/testsuite/c-c++-common/gomp/critical-hint-2.c rename to libgomp/testsuite/libgomp.c-c++-common/critical-hint-2.c index effe24a63ece..057353b6ce28 100644 --- a/gcc/testsuite/c-c++-common/gomp/critical-hint-2.c +++ b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-2.c @@ -1,3 +1,4 @@ +/* { dg-do compile } */ /* { dg-additional-options "-fdump-tree-original" } */ #include diff --git a/gcc/testsuite/gfortran.dg/gomp/critical-hint-1.f90 b/libgomp/testsuite/libgomp.fortran/critical-hint-1.f90 similarity index 99% rename from gcc/testsuite/gfortran.dg/gomp/critical-hint-1.f90 rename to libgomp/testsuite/libgomp.fortran/critical-hint-1.f90 index c26b617f1bd3..225d9a7a221a 100644 --- a/gcc/testsuite/gfortran.dg/gomp/critical-hint-1.f90 +++ b/libgomp/testsuite/libgomp.fortran/critical-hint-1.f90 @@ -1,3 +1,5 @@ +! { dg-do compile } + subroutine example_criticial () use omp_lib implicit none diff --git a/gcc/testsuite/gfortran.dg/gomp/critical-hint-2.f90 b/libgomp/testsuite/libgomp.fortran/critical-hint-2.f90 similarity index 99% rename from gcc/testsuite/gfortran.dg/gomp/critical-hint-2.f90 rename to libgomp/testsuite/libgomp.fortran/critical-hint-2.f90 index 15d6206a438d..f34680ca718e 100644 --- a/gcc/testsuite/gfortran.dg/gomp/critical-hint-2.f90 +++ b/libgomp/testsuite/libgomp.fortran/critical-hint-2.f90 @@ -1,3 +1,4 @@ +! { dg-do compile } ! { dg-additional-options "-fdump-tree-original" } subroutine example_criticial () use omp_lib