On Tue, 10 Jun 2025, Gábor Németh wrote:

> diff --git a/gcc/testsuite/c-c++-common/pr92826.c 
> b/gcc/testsuite/c-c++-common/pr92826.c
> new file mode 100644
> index 00000000000..ea2e20c6331
> --- /dev/null
> +++ b/gcc/testsuite/c-c++-common/pr92826.c
> @@ -0,0 +1,6 @@
> +/* { dg-options "-pedantic" } */
> +
> +int main()
> +{
> +    return 1.0Q > 0.1; /* { dg-warning "12: non-standard suffix on floating 
> constant .-Wpedantic" } */
> +}

Not all targets support the Q suffix at all.  You'll need something like

/* { dg-do compile } */
/* { dg-require-effective-target __float128 } */
/* { dg-options "-pedantic" } */
/* { dg-add-options __float128 } */

(as in gcc.dg/const-float128-ped.c).

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to