From 49cb7150f0e93e8332f4b78753675b255a5c58f2 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 13 Sep 2024 15:52:02 +0200 Subject: [PATCH] testsuite: adjust pragma-diag-17.c diagnostics The Linaro CI runs of this testcase pointed out that I need to check for DFP support, as well. gcc/testsuite/ChangeLog: * c-c++-common/pragma-diag-17.c: Handle !dfp targets. --- gcc/testsuite/c-c++-common/pragma-diag-17.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/c-c++-common/pragma-diag-17.c b/gcc/testsuite/c-c++-common/pragma-diag-17.c index a38841bc48d..a44ce90f98b 100644 --- a/gcc/testsuite/c-c++-common/pragma-diag-17.c +++ b/gcc/testsuite/c-c++-common/pragma-diag-17.c @@ -12,7 +12,7 @@ void f() 0b0100; /* { dg-error "binary constant" "" { target { ! c++14 } } } */ #pragma GCC diagnostic ignored "-Wpedantic" 2.0j; - 1.0dd; + 1.0dd; /* { dg-error "decimal floating-point" "" { target { ! dfp } } } */ 1.0d; #ifdef __cplusplus -- 2.47.2