debug/92763 Fix testcase to require fopenmp

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.
This commit is contained in:
Christophe Lyon 2020-01-24 09:07:58 +00:00
parent 9e424d9749
commit ad8e2415d6
2 changed files with 6 additions and 0 deletions

View 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> 2020-01-23 David Malcolm <dmalcolm@redhat.com>
PR analyzer/93367 PR analyzer/93367

View File

@ -1,4 +1,5 @@
// { dg-do compile } // { dg-do compile }
// { dg-require-effective-target fopenmp }
// { dg-additional-options "-fno-var-tracking-assignments -fopenmp" } // { dg-additional-options "-fno-var-tracking-assignments -fopenmp" }
struct A struct A