From: Jason Merrill Date: Fri, 13 Sep 2024 13:52:02 +0000 (+0200) Subject: testsuite: adjust pragma-diag-17.c diagnostics X-Git-Tag: basepoints/gcc-16~5915 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49cb7150f0e93e8332f4b78753675b255a5c58f2;p=thirdparty%2Fgcc.git 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. --- 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