diff mbox series

openmp test: Add dg-require-effective-target fopenmp to g++ test using -fopenmp

Message ID 3D95A440-F3F4-4C37-9A4D-E96B56632094@adacore.com
State New
Headers show
Series openmp test: Add dg-require-effective-target fopenmp to g++ test using -fopenmp | expand

Commit Message

Olivier Hainque Nov. 2, 2020, 1:43 p.m. UTC
Hello,

This prevents failures of a test using -fopenmp on
targets not advertising support for that feature (VxWorks
in my case).

I have also verified that the test still runs and passes
on a native x86_64-linux configuration.

Ok to commit ?

Thanks in advance!

With Kind Regards,

Olivier

2020-11-02  Olivier Hainque  <hainque@adacore.com>
    
testsuite/
	* g++.dg/pr80481.C: Add dg-require-effective-target fopenmp.
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C
index 78c463b8e3b5..33f75b27653f 100644
--- a/gcc/testsuite/g++.dg/pr80481.C
+++ b/gcc/testsuite/g++.dg/pr80481.C
@@ -1,4 +1,5 @@ 
 // { dg-do compile { target { i?86-*-* x86_64-*-* }  && { ! *-*-solaris* } } }
+// { dg-require-effective-target fopenmp }
 // { dg-options "-Ofast -funroll-loops -fopenmp -march=knl" }
 // Disabling epilogues until we find a better way to deal with scans.
 // { dg-additional-options "--param vect-epilogues-nomask=0" }