diff mbox series

[pushed] testsuite: adjust pragma-diag-17.c diagnostics

Message ID 20240914115708.263737-1-jason@redhat.com
State New
Headers show
Series [pushed] testsuite: adjust pragma-diag-17.c diagnostics | expand

Commit Message

Jason Merrill Sept. 14, 2024, 11:56 a.m. UTC
Tested x86_64-pc-linux-gnu and armv8l-unknown-linuxgnueabihf, applying to
trunk.

-- 8< --

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(-)


base-commit: bec1f2ce4ad3fe56906d6429b542a290e574b3eb
diff mbox series

Patch

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