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 <tdevr...@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(-) 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 {