gcc/testsuite/ChangeLog:
* gcc.dg/maxof-compile.c (quals): New test.
Reported-by: Joseph Myers <[email protected]>
Signed-off-by: Alejandro Colomar <[email protected]>
---
gcc/testsuite/gcc.dg/maxof-compile.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/maxof-compile.c
b/gcc/testsuite/gcc.dg/maxof-compile.c
index 098cade1426f..9ba5783fe4a9 100644
--- a/gcc/testsuite/gcc.dg/maxof-compile.c
+++ b/gcc/testsuite/gcc.dg/maxof-compile.c
@@ -156,3 +156,12 @@ type (void)
_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);
+}
--
2.51.0