debug/92763 Fix testcase to require fopenmp
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 24 Jan 2020 09:07:58 +0000 (09:07 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 24 Jan 2020 09:23:31 +0000 (09:23 +0000)
The testcase fails to link on targets without -pthread which is
implied by -fopenmp. Use dg-require-effective-target fopenmp to avoid
this problem.

2020-01-24  Christophe Lyon  <christophe.lyon@linaro.org>

PR debug/92763
* g++.dg/debug/pr92763.C: Require fopenmp.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/pr92763.C

index df547bcc2ae675743390f88bd4c512894df05d62..c465ff99541b24fd223b47349f8f3e7422dd58b2 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-24  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       PR debug/92763
+       * g++.dg/debug/pr92763.C: Require fopenmp.
+
 2020-01-23  David Malcolm  <dmalcolm@redhat.com>
 
        PR analyzer/93367
index 8e32d60039f765246f68f9a810a477944074f61d..16dccf3b56f712426037f27bb2782fa057706a54 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-require-effective-target fopenmp }
 // { dg-additional-options "-fno-var-tracking-assignments -fopenmp" }
 
 struct A