This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite]: Add require fopenmp as needed
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Mike Stump <mikestump at comcast dot net>, Dodji Seketeli <dodji at gcc dot gnu dot org>
- Date: Tue, 05 Jul 2011 12:07:32 +0200
- Subject: [testsuite]: Add require fopenmp as needed
There is a testcase that fails if no openmp is available.
This patch fixed that.
CCed contributor.
Johann
* gcc.dg/cpp/pragma-3.c: Add dg-require-effective-target fopenmp.
Index: gcc.dg/cpp/pragma-3.c
===================================================================
--- gcc.dg/cpp/pragma-3.c (revision 175811)
+++ gcc.dg/cpp/pragma-3.c (working copy)
@@ -1,6 +1,7 @@
/*
{ dg-options "-fopenmp" }
{ dg-do preprocess }
+ { dg-require-effective-target fopenmp }
*/
void foo (void)