[committed,testsuite] Add missing dg-require-effective-target global_constructor

Message ID 20190620104001.GA11007@delia
State New
Headers show
Series
  • [committed,testsuite] Add missing dg-require-effective-target global_constructor
Related show

Commit Message

Tom de Vries June 20, 2019, 10:40 a.m.
Hi,

Add missing dg-require-effective-target global_constructor.

Tested on nvptx.

Committed to trunk.

Thanks,
- Tom

[testsuite] Add missing dg-require-effective-target global_constructor

2019-06-20  Tom de Vries  <tdevries@suse.de>

	* gcc.dg/pr90866-2.c: Require global_constructor.

---
 gcc/testsuite/gcc.dg/pr90866-2.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/gcc/testsuite/gcc.dg/pr90866-2.c b/gcc/testsuite/gcc.dg/pr90866-2.c
index 8c110498154..38eb8742859 100644
--- a/gcc/testsuite/gcc.dg/pr90866-2.c
+++ b/gcc/testsuite/gcc.dg/pr90866-2.c
@@ -1,6 +1,8 @@ 
 /* PR tree-optimization/90866 - ICE in fold_binary_loc, at fold-const.c:9827
    { dg-do compile  }
-   { dg-options "-O2 -fsanitize=thread" } */
+   { dg-require-effective-target global_constructor }
+   { dg-options "-O2 -fsanitize=thread" }
+ */
 
 typedef enum { a } b;
 typedef struct {