testsuite: Fix omp-parallel-for-get-min.c and -for-1.c for non-openmp
Checks
Commit Message
Committed as obvious.
-- >8 --
The recently added tests missed checking for "fopenmp" (see
other tests where "-fopenmp" is passed), which makes them
fail on non-openmp systems.
* gcc.dg/analyzer/omp-parallel-for-get-min.c,
gcc.dg/analyzer/omp-parallel-for-1.c: Require effective target fopenmp.
---
gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c | 1 +
gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c | 1 +
2 files changed, 2 insertions(+)
Comments
On Wed, 2023-03-08 at 05:58 +0100, Hans-Peter Nilsson wrote:
> Committed as obvious.
> -- >8 --
> The recently added tests missed checking for "fopenmp" (see
> other tests where "-fopenmp" is passed), which makes them
> fail on non-openmp systems.
Sorry about that; thanks for the fix.
Dave
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target fopenmp } */
/* { dg-additional-options "-fopenmp -Wall" } */
typedef struct _Image
@@ -1,5 +1,6 @@
/* Reduced from ImageMagick-7.1.0-57's MagickCore/attribute.c: GetEdgeBackgroundColor */
+/* { dg-require-effective-target fopenmp } */
/* { dg-additional-options "-fopenmp -Wall" } */
extern double get_census (void);