From 6760065a1388ed70094ff9308464773a24324814 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 15 Oct 2020 09:37:03 +0200 Subject: [PATCH] [nvptx, testsuite] Fix xpass with ident-0b.c For nvptx, I see: ... XPASS: c-c++-common/ident-0b.c -Wc++-compat scan-assembler-not GCC: ... Fix this by requiring effective target ident_directive. Tested on nvptx. gcc/testsuite/ChangeLog: 2020-10-15 Tom de Vries * c-c++-common/ident-0b.c: Require effective target ident_directive. --- gcc/testsuite/c-c++-common/ident-0b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/c-c++-common/ident-0b.c b/gcc/testsuite/c-c++-common/ident-0b.c index 67b593c63ad..b46d85010d9 100644 --- a/gcc/testsuite/c-c++-common/ident-0b.c +++ b/gcc/testsuite/c-c++-common/ident-0b.c @@ -2,6 +2,7 @@ * Make sure scan-assembler-not turns off .ident unless -fident in testcase */ /* { dg-do compile } */ /* { dg-options "-fident" } */ +/* { dg-require-effective-target ident_directive }*/ /* { dg-skip-if "no assembler .ident support" { { hppa*-*-hpux* && { ! lp64 } } || powerpc*-*-darwin* } } */ int i; -- 2.30.2