Reported-by: Joseph Myers <josmyers@redhat.com>
Message-ID: <
20260120223726.
92382356D0A@www.open-std.org>
Approved-by: Joseph Myers <josmyers@redhat.com>
Message-ID: <
8c472204-b58e-372f-7a1f-
385b80c43c47@redhat.com>
gcc/testsuite/ChangeLog:
* gcc.dg/maxof-compile.c (quals): New test.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
_Generic (_Maxof (bool), bool: 0);
_Generic (_Minof (bool), bool: 0);
}
+
+void
+quals (void)
+{
+ _Generic (typeof (_Maxof (const int)), int: 0);
+ _Generic (typeof (_Minof (const int)), int: 0);
+ _Generic (typeof (_Maxof (volatile int)), int: 0);
+ _Generic (typeof (_Minof (volatile int)), int: 0);
+}