]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: adjust pragma-diag-17.c diagnostics
authorJason Merrill <jason@redhat.com>
Fri, 13 Sep 2024 13:52:02 +0000 (15:52 +0200)
committerJason Merrill <jason@redhat.com>
Sat, 14 Sep 2024 11:56:13 +0000 (13:56 +0200)
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

index a38841bc48d23d9fbebd8476e729949c8343f420..a44ce90f98b16c8d562f348e0d08358d0a13a841 100644 (file)
@@ -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